Commit 6832e815 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix off-by-one buffer overflow

parent cd331d6f
......@@ -521,7 +521,7 @@ static void Run( services_discovery_t *p_sd )
while( !p_sd->b_die )
{
int i_read;
uint8_t p_buffer[MAX_SAP_BUFFER];
uint8_t p_buffer[MAX_SAP_BUFFER + 1];
i_read = net_Select( p_sd, p_sd->p_sys->pi_fd, NULL,
p_sd->p_sys->i_fd, p_buffer,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment