[vlc-commits] [Git][videolan/vlc][master] speex: encoder: fix integer overflow

Steve Lhomme (@robUx4) gitlab at videolan.org
Wed Sep 9 11:41:08 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
16e73392 by Tristan Matthews at 2026-09-09T11:30:58+00:00
speex: encoder: fix integer overflow

Fixes CID 1439603. Regression introduced in cc79f1f98f89465385c595f572eee9be1ce80c03

- - - - -


1 changed file:

- modules/codec/speex.c


Changes:

=====================================
modules/codec/speex.c
=====================================
@@ -1269,7 +1269,7 @@ static block_t *Encode( encoder_t *p_enc, block_t *p_aout_buf )
         speex_bits_reset( &p_sys->bits );
 
         p_block->i_length = vlc_tick_from_samples(
-            p_sys->i_frame_length * p_sys->header.frames_per_packet,
+            p_sys->i_frame_length * (vlc_tick_t)p_sys->header.frames_per_packet,
             p_enc->fmt_in.audio.i_rate );
 
         p_block->i_dts = p_block->i_pts = i_pts;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/16e73392b77d308a537ac2ae54ecfa96723e39d2

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/16e73392b77d308a537ac2ae54ecfa96723e39d2
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