This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/7.1 in repository ffmpeg.
commit 29f4958756ca46a5899e5b2903b0262742a9bd60 Author: Michael Niedermayer <[email protected]> AuthorDate: Sun Feb 8 02:52:54 2026 +0100 Commit: Michael Niedermayer <[email protected]> CommitDate: Mon May 4 15:57:06 2026 +0200 avcodec/adpcm: Check input buffer size Larger values will lead to integer overflows in intermediates No testcase Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit 5f84a7263e34ed8aa3dba30bec791a297c7140cc) Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/adpcm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index c6b6e22e95..a07e7d7791 100644 --- a/libavcodec/adpcm.c +++ b/libavcodec/adpcm.c @@ -857,6 +857,8 @@ static int get_nb_samples(AVCodecContext *avctx, GetByteContext *gb, if(ch <= 0) return 0; + if (buf_size > INT_MAX / 2) + return 0; switch (avctx->codec->id) { /* constant, only check buf_size */ _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
