[vlc-commits] demux: avi: fix invalid dereference
Francois Cartegnie
git at videolan.org
Tue Dec 15 11:38:48 UTC 2020
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Oct 22 15:30:10 2020 +0200| [41541125de479fdff0ed0dcd73a6bbc64e598727] | committer: Hugo Beauzée-Luyssen
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 <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=41541125de479fdff0ed0dcd73a6bbc64e598727
---
modules/demux/avi/avi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 8edab47a62..9174b3167b 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -784,7 +784,7 @@ aviindex:
{
continue;
}
- p_strl = AVI_ChunkFind( p_hdrl, AVIFOURCC_strl, i, true );
+ p_strl = AVI_ChunkFind( p_hdrl, AVIFOURCC_strl, tk->fmt.i_id, true );
p_auds = AVI_ChunkFind( p_strl, AVIFOURCC_strf, 0, false );
if( p_auds &&
More information about the vlc-commits
mailing list