Commit f11f4160 authored by François Cartegnie's avatar François Cartegnie 🤞

packetizer: mpeg4video: fix oob read

(cherry picked from commit 074f3261)
parent 666789f2
......@@ -362,11 +362,13 @@ static int ParseVOL( decoder_t *p_dec, es_format_t *fmt,
for( ;; )
{
if( i_vol <= 5 )
return VLC_EGENERIC;
if( p_vol[0] == 0x00 && p_vol[1] == 0x00 && p_vol[2] == 0x01 &&
p_vol[3] >= 0x20 && p_vol[3] <= 0x2f ) break;
p_vol++; i_vol--;
if( i_vol <= 4 ) return VLC_EGENERIC;
}
bs_init( &s, &p_vol[4], i_vol - 4 );
......
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