This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 93f2a525ec avcodec/dvbsub_parser: avoid signed overflow in the
capacity check
93f2a525ec is described below
commit 93f2a525ec6c7b467bae68322720d10188fc6e30
Author: Michael Niedermayer <[email protected]>
AuthorDate: Wed Jul 22 05:49:11 2026 +0200
Commit: michaelni <[email protected]>
CommitDate: Wed Jul 29 21:07:17 2026 +0000
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)
---
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]