Commit 02cd9bdf authored by Rémi Duraffort's avatar Rémi Duraffort

ogg: Fix tiny bugger overflow.

parent 13174567
......@@ -1832,7 +1832,7 @@ static void Ogg_ReadAnnodexHeader( vlc_object_t *p_this,
uint8_t *p = memchr( &p_oggpacket->packet[42], '\r',
p_oggpacket->bytes - 1 );
if( p && p[0] == '\r' && p[1] == '\n' )
sscanf( (char*)(&p_oggpacket->packet[42]), "%1024s\r\n",
sscanf( (char*)(&p_oggpacket->packet[42]), "%1023s\r\n",
content_type_string );
}
......
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