Skip to content
Snippets Groups Projects
Commit 7b088502 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

telnet_interpret() can grow th input buffer by a byte.

If a '\r' is the last thing in the previous receive buffer.
parent 9048b3d2
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1630 passed
......@@ -21,7 +21,8 @@ extern int telnet_log_level;
void *telnet_rx_parse_cb(const void *buf, size_t inlen, size_t *olen)
{
void *ret = malloc(inlen);
// telnet_interpret() can add up to one byte to inbuf ('\r')
void *ret = malloc(inlen + 1);
if (ret == NULL)
return ret;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment