This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch release/8.1
in repository ffmpeg.

commit 660b5aa7dbce1f95cb04b3c7b8e94d79f893d15d
Author:     Kacper Michajłow <[email protected]>
AuthorDate: Thu Oct 29 22:51:19 2026 +0100
Commit:     Marvin Scholz <[email protected]>
CommitDate: Thu Nov 19 19:50:09 2026 +0000

    avcodec/hdrdec: avoid an integer overflow in the input size check
    
    Fixes: signed integer overflow: 701411834 * 4 cannot be represented in type 
'int'
    Fixes: 
536328675/clusterfuzz-testcase-minimized-fuzzer_loadfile-4748225916239872
    
    Found-by: https://github.com/google/oss-fuzz/tree/master/projects/mpv
    Signed-off-by: Kacper Michajłow <[email protected]>
    (cherry picked from commit c599ac23c8397a0b64f9f1296f1f0584f08a5e2b)
---
 libavcodec/hdrdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/hdrdec.c b/libavcodec/hdrdec.c
index 1a6935ff75..3ede2356b1 100644
--- a/libavcodec/hdrdec.c
+++ b/libavcodec/hdrdec.c
@@ -126,7 +126,7 @@ static int hdr_decode_frame(AVCodecContext *avctx, AVFrame 
*p,
         ;
     }
 
-    if (bytestream2_get_bytes_left(&gb) < height * 4)
+    if (bytestream2_get_bytes_left(&gb) < height * 4LL)
         return AVERROR_INVALIDDATA;
 
     if ((ret = ff_set_dimensions(avctx, width, height)) < 0)

-- 
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]

Reply via email to