Commit b27f31c7 authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Jean-Baptiste Kempf

demux: mp4: fix heap read ofw in extra bytes

(cherry picked from commit 54bbfac289eeeed9ba044bf9f9e1ee43e5642c78)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent abf74133
......@@ -1431,7 +1431,7 @@ static int DemuxInit( demux_t *p_demux )
if( p_sp->i_type_specific_data_length > sizeof( WAVEFORMATEX ) &&
i_format != WAVE_FORMAT_MPEGLAYER3 &&
i_format != WAVE_FORMAT_MPEG )
i_format != WAVE_FORMAT_MPEG && i_data >= 19 )
{
GET_CHECKED( fmt.i_extra, __MIN( GetWLE( &p_data[16] ),
p_sp->i_type_specific_data_length -
......
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