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 bb4fc05a3deba5a98b32077980af5b049f9bb646
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Wed Apr 8 13:49:28 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Mon May 4 15:57:27 2026 +0200

    avcodec/tdsc: Better input size check
    
    Signed-off-by: Michael Niedermayer <[email protected]>
    (cherry picked from commit bf4eb194cfd35c65d523685d35168d7107394e9c)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/tdsc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/tdsc.c b/libavcodec/tdsc.c
index c995e4dffe..2d1c648035 100644
--- a/libavcodec/tdsc.c
+++ b/libavcodec/tdsc.c
@@ -404,7 +404,7 @@ static int tdsc_decode_tiles(AVCodecContext *avctx, int 
number_tiles)
         }
 
         tile_size = bytestream2_get_le32(&ctx->gbc);
-        if (bytestream2_get_bytes_left(&ctx->gbc) < tile_size)
+        if (bytestream2_get_bytes_left(&ctx->gbc) < tile_size + 24LL)
             return AVERROR_INVALIDDATA;
 
         tile_mode = bytestream2_get_le32(&ctx->gbc);

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

Reply via email to