[vlc-commits] [Git][videolan/vlc][master] audio_filter: ebur128: check for overflow before alloc
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Fri Apr 10 17:48:18 UTC 2026
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
70d1f8eb by François Cartegnie at 2026-04-10T19:35:02+02:00
audio_filter: ebur128: check for overflow before alloc
- - - - -
1 changed file:
- modules/audio_filter/libebur128.c
Changes:
=====================================
modules/audio_filter/libebur128.c
=====================================
@@ -151,6 +151,8 @@ Process(filter_t *filter, block_t *block)
{
case VLC_CODEC_U8:
{
+ if (unlikely(block->i_buffer > SIZE_MAX / 2))
+ return out;
/* Convert to S16N */
short *data_s16 = malloc(block->i_buffer * 2);
if (unlikely(data_s16 == NULL))
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/70d1f8eb1f91eaa4531ee6e4a1be3a303974431e
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/70d1f8eb1f91eaa4531ee6e4a1be3a303974431e
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list