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

demux: mp4: fix heap overflow (fix #12283)

(cherry picked from commit fd9a60b0178286f603ef9b3057b4ff4ab28d7a22)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 9f928464
......@@ -881,7 +881,9 @@ static int MP4_ReadBox_mdhd( stream_t *p_stream, MP4_Box_t *p_box )
MP4_GET4BYTES( p_box->data.p_mdhd->i_timescale );
MP4_GET4BYTES( p_box->data.p_mdhd->i_duration );
}
p_box->data.p_mdhd->i_language_code = i_language = GetWBE( p_peek );
MP4_GET2BYTES( i_language );
p_box->data.p_mdhd->i_language_code = i_language;
for( unsigned i = 0; i < 3; i++ )
{
p_box->data.p_mdhd->i_language[i] =
......
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