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 c1a7c79624 avformat/hcom: check that all extradata bytes were read
from the input
c1a7c79624 is described below
commit c1a7c79624e3ceac80893a89a6176b7589ea0300
Author: James Almer <[email protected]>
AuthorDate: Fri Jan 16 13:14:09 2026 -0300
Commit: James Almer <[email protected]>
CommitDate: Sat Jan 17 17:42:06 2026 -0300
avformat/hcom: check that all extradata bytes were read from the input
Fixes issue #21493.
Signed-off-by: James Almer <[email protected]>
---
libavformat/hcom.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libavformat/hcom.c b/libavformat/hcom.c
index 2a8c524496..9abc71915a 100644
--- a/libavformat/hcom.c
+++ b/libavformat/hcom.c
@@ -21,6 +21,7 @@
#include "libavutil/intreadwrite.h"
#include "avformat.h"
+#include "avio_internal.h"
#include "demux.h"
#include "internal.h"
#include "pcm.h"
@@ -73,7 +74,9 @@ static int hcom_read_header(AVFormatContext *s)
return ret;
AV_WB16(st->codecpar->extradata, dict_entries);
AV_WB32(st->codecpar->extradata + 2, compresstype);
- avio_read(s->pb, st->codecpar->extradata + 6, dict_entries * 4);
+ ret = ffio_read_size(s->pb, st->codecpar->extradata + 6, dict_entries * 4);
+ if (ret < 0)
+ return ret;
avio_skip(s->pb, 1);
st->codecpar->extradata[dict_entries * 4 + 6] = avio_r8(s->pb);
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]