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 da555d4caa avcodec/diracdec: fail on a data unit whose size does not
fit the bit reader
da555d4caa is described below
commit da555d4caaa2b9a71eef85a46b1ec727286a8be8
Author: Michael Niedermayer <[email protected]>
AuthorDate: Tue Sep 15 06:13:53 2026 +0200
Commit: michaelni <[email protected]>
CommitDate: Mon Sep 28 03:37:07 2026 +0000
avcodec/diracdec: fail on a data unit whose size does not fit the bit reader
Fixes: NULL pointer dereference
Fixes: signed integer overflow
Fixes: s6y285XTJaIu
Found-by: Zheng Yu @ Depthfirst
---
libavcodec/diracdec.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavcodec/diracdec.c b/libavcodec/diracdec.c
index 4f2ddb5897..aa54dbaff2 100644
--- a/libavcodec/diracdec.c
+++ b/libavcodec/diracdec.c
@@ -2133,7 +2133,9 @@ static int dirac_decode_data_unit(AVCodecContext *avctx,
const uint8_t *buf, int
parse_code = buf[4];
- init_get_bits(&s->gb, &buf[13], 8*(size - DATA_UNIT_HEADER_SIZE));
+ ret = init_get_bits8(&s->gb, &buf[13], size - DATA_UNIT_HEADER_SIZE);
+ if (ret < 0)
+ return ret;
if (parse_code == DIRAC_PCODE_SEQ_HEADER) {
if (s->seen_sequence_header)
--
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]