This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/9.1 in repository ffmpeg.
commit c91c5015c86c1803db5e49c69e5923f7a7306ea5 Author: Michael Niedermayer <[email protected]> AuthorDate: Thu Nov 5 03:41:23 2026 +0100 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun Nov 15 02:47:01 2026 +0100 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) (cherry picked from commit e621da8ecdbef8edb8336cc899b962159dc2465c) Signed-off-by: Michael Niedermayer <[email protected]> --- 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]
