[vlc-commits] [Git][videolan/vlc][3.0.x] demux: mpeg4: fix OOB read
François Cartegnie (@fcartegnie)
gitlab at videolan.org
Sat Sep 5 10:59:03 UTC 2026
François Cartegnie pushed to branch 3.0.x at VideoLAN / VLC
Commits:
56ab1700 by François Cartegnie at 2026-09-05T12:51:11+02:00
demux: mpeg4: fix OOB read
refs #29696
- - - - -
1 changed file:
- modules/demux/mpeg/mpeg4_iod.c
Changes:
=====================================
modules/demux/mpeg/mpeg4_iod.c
=====================================
@@ -621,7 +621,7 @@ sl_header_data DecodeSLHeader( unsigned i_data, const uint8_t *p_data,
if ( b_has_padding && !i_padding ) /* all padding */
ret.i_size = i_data;
else
- ret.i_size = (bs_pos( &s ) + 7) / 8;
+ ret.i_size = i_data - bs_remain( &s ) / 8;
return ret;
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/56ab1700d63f8b85ea4d955b53f15063487cac37
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/56ab1700d63f8b85ea4d955b53f15063487cac37
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