[vlc-commits] [Git][videolan/vlc][master] demux: avi: fix embedded sub segfault
Steve Lhomme (@robUx4)
gitlab at videolan.org
Mon Aug 17 10:55:53 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
bfc0c01a by François Cartegnie at 2026-08-17T10:44:13+00:00
demux: avi: fix embedded sub segfault
refs #29972
Reported-by: HE WEI (ギカク) <skyexpoc at gmail.com>
- - - - -
1 changed file:
- modules/demux/avi/avi.c
Changes:
=====================================
modules/demux/avi/avi.c
=====================================
@@ -3151,7 +3151,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/bfc0c01acd76c51107075e04578cea5bca66742c
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/bfc0c01acd76c51107075e04578cea5bca66742c
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