[vlc-commits] [Git][videolan/vlc][3.0.x] demux: avi: fix embedded sub segfault

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Aug 28 10:59:34 UTC 2026



Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC


Commits:
140ed641 by François Cartegnie at 2026-08-28T10:51:32+00:00
demux: avi: fix embedded sub segfault

fix #29972
Reported-by: HE WEI (ギカク) <skyexpoc at gmail.com>

(cherry picked from commit bfc0c01acd76c51107075e04578cea5bca66742c)

- - - - -


1 changed file:

- modules/demux/avi/avi.c


Changes:

=====================================
modules/demux/avi/avi.c
=====================================
@@ -3187,7 +3187,7 @@ static void AVI_ExtractSubtitle( demux_t *p_demux,
         p[4] != 0x00 || GetWLE( &p[5] ) != 0x2 )
         goto exit;
     const unsigned i_name = GetDWLE( &p[7] );
-    if( 11 + i_size <= i_name )
+    if( INT64_C(11) + i_name >= i_size )
         goto exit;
     if( i_name > 0 )
         psz_description = FromCharset( "UTF-16LE", &p[11], i_name );



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/140ed6414bdff3831ac1b6705d118d8e6bdcd347

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/140ed6414bdff3831ac1b6705d118d8e6bdcd347
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list