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 9141898e405478ea005e406eb07b8abb8cb640e7 Author: Michael Niedermayer <[email protected]> AuthorDate: Tue Nov 3 02:15:18 2026 +0100 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun Nov 15 02:43:16 2026 +0100 avcodec/interplayacm: reject blocks larger than 1M samples The limit is libacm's MAX_BLOCK_LEN (1024 * 1024 samples, decode.c); libacm is the decoder this one derives from and is what the games' modding tools use, so no file decodable by it is rejected. Real files from Baldur's Gate, Baldur's Gate II, Icewind Dale, Icewind Dale II and Planescape: Torment use level 7 or 8 with 16 rows, blocks of 2048 or 4096 samples, and the snd2acm / DLTCEP encoder defaults to level 7 with 16 rows, 256 times below the limit. Excessive memory allocation (peak RSS 944 MB from a 78 byte file) Replicated through UnModified FFmpeg with ASAN Fixes: out of memory Fixes: fi1TMFhPx2mP Fixes: AISLE-2026-0150-00274 Found-by: Joshua Rogers (AISLE) Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit 6ecaddb9c1d59cf7f5de16017122fecb2fa0c67c) Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/interplayacm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/interplayacm.c b/libavcodec/interplayacm.c index cd2e6faa67..0188390884 100644 --- a/libavcodec/interplayacm.c +++ b/libavcodec/interplayacm.c @@ -96,6 +96,10 @@ static av_cold int decode_init(AVCodecContext *avctx) s->cols = 1 << s->level; s->wrapbuf_len = 2 * s->cols - 2; s->block_len = s->rows * s->cols; + if (s->block_len > 1024 * 1024) { + av_log(avctx, AV_LOG_ERROR, "Block of %d samples is too large\n", s->block_len); + return AVERROR_INVALIDDATA; + } s->max_framesize = s->block_len; s->block = av_calloc(s->block_len, sizeof(int)); -- 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]
