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 4ebb720fc1 avformat/genh: check for unsupported interlaved size 1 typ1
THP
4ebb720fc1 is described below
commit 4ebb720fc1d73f38d9bace4aaa1ed7d4b55caa1a
Author: Michael Niedermayer <[email protected]>
AuthorDate: Mon Sep 14 03:02:32 2026 +0200
Commit: michaelni <[email protected]>
CommitDate: Thu Sep 17 21:48:21 2026 +0000
avformat/genh: check for unsupported interlaved size 1 typ1 THP
Fixes: use of uninitialized memory
Fixes: crafted_malicious.genh / generate_poc.py
Fixes: XtWk54O0PGfP
Found-by: zhang xingxing
Signed-off-by: Michael Niedermayer <[email protected]>
---
libavformat/genh.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavformat/genh.c b/libavformat/genh.c
index 32cad7382b..14618a8ed7 100644
--- a/libavformat/genh.c
+++ b/libavformat/genh.c
@@ -177,6 +177,11 @@ static int genh_read_packet(AVFormatContext *s, AVPacket
*pkt)
par->ch_layout.nb_channels > 1) {
int i, ch;
+ if (c->interleave_size != 2) {
+ avpriv_request_sample(s, "type1 THP interleave size %d",
c->interleave_size);
+ return AVERROR_PATCHWELCOME;
+ }
+
if (avio_feof(s->pb))
return AVERROR_EOF;
ret = av_new_packet(pkt, 8 * par->ch_layout.nb_channels);
--
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]