This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/5.1 in repository ffmpeg.
commit df11b398881069ef8d2b62a79f80cee958b6d570 Author: Michael Niedermayer <[email protected]> AuthorDate: Sun Feb 8 02:52:54 2026 +0100 Commit: Michael Niedermayer <[email protected]> CommitDate: Tue May 5 15:21:01 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 b2ef7dfbec..9b896c4ed5 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]
