This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit e621da8ecdbef8edb8336cc899b962159dc2465c Author: Michael Niedermayer <[email protected]> AuthorDate: Thu Nov 5 03:41:23 2026 +0100 Commit: michaelni <[email protected]> CommitDate: Thu Nov 5 23:01:56 2026 +0000 avcodec/wavpackenc: compute the default block size in 64 bit Fixes: signed integer overflow Fixes: infinite loop Fixes: dVqGncTUAyg9 Fixes: AISLE-2026-0150-00591 Signed integer overflow and infinite loop Replicated through API with UBSAN Found-by: Joshua Rogers (AISLE) --- libavcodec/wavpackenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/wavpackenc.c b/libavcodec/wavpackenc.c index 17372b74a5..e1d77b830d 100644 --- a/libavcodec/wavpackenc.c +++ b/libavcodec/wavpackenc.c @@ -144,10 +144,10 @@ static av_cold int wavpack_encode_init(AVCodecContext *avctx) else block_samples = avctx->sample_rate; - while (block_samples * avctx->ch_layout.nb_channels > WV_MAX_SAMPLES) + while (block_samples * (int64_t)avctx->ch_layout.nb_channels > WV_MAX_SAMPLES) block_samples /= 2; - while (block_samples * avctx->ch_layout.nb_channels < 40000) + while (block_samples * (int64_t)avctx->ch_layout.nb_channels < 40000) block_samples *= 2; avctx->frame_size = block_samples; } else if (avctx->frame_size && (avctx->frame_size < 128 || -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
