mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 06:10:15 +00:00
broadway: Don't bother memdup-ing
If we're going to run off the end due to an invalid message, we're going to run off the end. We'll protect this by doing proper bounds checking in the future, but the malloc gives us nothing for now.
This commit is contained in:
parent
0d0ff40d2f
commit
d7417580b7
@ -568,9 +568,7 @@ parse_input (BroadwayInput *input)
|
||||
}
|
||||
else
|
||||
{
|
||||
char *terminated = g_memdup ((char *)data, payload_len);
|
||||
parse_input_message (input, terminated);
|
||||
g_free (terminated);
|
||||
parse_input_message (input, data);
|
||||
}
|
||||
break;
|
||||
case BROADWAY_WS_CNX_PING:
|
||||
|
Loading…
Reference in New Issue
Block a user