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 621d35023a45f034bf17001d038c1a3b10209e61
Author:     amhurtado <[email protected]>
AuthorDate: Tue May 19 15:55:21 2026 -0500
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Jun 14 04:40:53 2026 +0200

    avcodec/prores_raw: reject invalid tile alignment values
    
    Fixes: out of array access
    
    Regression since d8cb567 ("prores_raw: fix tile alignment
    issues").
    
    Found-by: amhurtado <[email protected]>
    Signed-off-by: amhurtado <[email protected]>
    (cherry picked from commit d3f59f9b7fdc09090970b314cde58c906cc86efd)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/prores_raw.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavcodec/prores_raw.c b/libavcodec/prores_raw.c
index c1c05fd959..915ad54a5d 100644
--- a/libavcodec/prores_raw.c
+++ b/libavcodec/prores_raw.c
@@ -414,6 +414,11 @@ static int decode_frame(AVCodecContext *avctx,
     /* Flags */
     int flags = bytestream2_get_be16(&gb_hdr);
     int align = (flags >> 1) & 0x7;
+    if (align > 4) {
+        av_log(avctx, AV_LOG_ERROR,
+               "Invalid tile alignment %d (max 4)\n", align);
+        return AVERROR_INVALIDDATA;
+    }
 
     /* Quantization matrix */
     if (flags & 1)

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to