Commit a7f577ec authored by François Cartegnie's avatar François Cartegnie 🤞 Committed by Hugo Beauzée-Luyssen
Browse files

demux: avi: fix invalid dereference



the stored track index might not match the one
at parsing time

Reported by: Zhen Zhou, NSFOCUS Security Team
Signed-off-by: Hugo Beauzée-Luyssen's avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
(cherry picked from commit 41541125de479fdff0ed0dcd73a6bbc64e598727)
Signed-off-by: Hugo Beauzée-Luyssen's avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent f5f8cc3a
......@@ -916,7 +916,7 @@ aviindex:
tk->i_samplesize != 0 )
continue;
avi_chunk_list_t *p_strl = AVI_ChunkFind( p_hdrl, AVIFOURCC_strl, i, true );
avi_chunk_list_t *p_strl = AVI_ChunkFind( p_hdrl, AVIFOURCC_strl, tk->fmt.i_id, true );
avi_chunk_strf_t *p_strf = AVI_ChunkFind( p_strl, AVIFOURCC_strf, 0, false );
if( !p_strf || p_strf->i_cat != AUDIO_ES )
continue;
......
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