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

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

commit 02fc47e13f903768b75f7985a2706a6223ab4506
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Wed Jul 22 05:49:11 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Aug 2 02:47:30 2026 +0200

    avcodec/dvbsub_parser: avoid signed overflow in the capacity check
    
    Fixes: signed integer overflow
    Fixes: out of array access
    Fixes: poc.wtv
    Fixes: fJeEU9JwKwsR
    Found-by: Adrian Junge (vurlo)
    (cherry picked from commit 93f2a525ec6c7b467bae68322720d10188fc6e30)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/dvbsub_parser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/dvbsub_parser.c b/libavcodec/dvbsub_parser.c
index 4527e4dd75..a93f39bfe0 100644
--- a/libavcodec/dvbsub_parser.c
+++ b/libavcodec/dvbsub_parser.c
@@ -104,7 +104,7 @@ static int dvbsub_parse(AVCodecParserContext *s,
         }
     }
 
-    if (buf_size - buf_pos + pc->packet_index > PARSE_BUF_SIZE)
+    if (buf_size - buf_pos > PARSE_BUF_SIZE - pc->packet_index)
         return buf_size;
 
 /* if not currently in a packet, pass data */

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

Reply via email to