[vlc-commits] [Git][videolan/vlc][master] demux: libavi: check for chunk size overflow

Steve Lhomme (@robUx4) gitlab at videolan.org
Sun Apr 12 06:10:16 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
5d680fd2 by François Cartegnie at 2026-04-12T05:36:11+00:00
demux: libavi: check for chunk size overflow

- - - - -


1 changed file:

- modules/demux/avi/libavi.c


Changes:

=====================================
modules/demux/avi/libavi.c
=====================================
@@ -302,9 +302,9 @@ int AVI_ChunkFetchIndexes( stream_t *s, avi_chunk_t *p_riff )
 
 #define AVI_READCHUNK_ENTER \
     int64_t i_read = __EVEN(p_chk->common.i_chunk_size ) + 8; \
-    if( i_read > 100000000 ) \
+    if( i_read > 100000000 || i_read < 0 ) \
     { \
-        msg_Err( s, "Big chunk ignored" ); \
+        msg_Err( s, "Invalid chunk size ignored" ); \
         return VLC_EGENERIC; \
     } \
     uint8_t  *p_read, *p_buff;    \



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/5d680fd2d123a62294a69106446a250a4001e130

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/5d680fd2d123a62294a69106446a250a4001e130
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list