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 b0a76ded81 avformat/vivo: fail on a short read of a text header packet
b0a76ded81 is described below
commit b0a76ded815f1911b4a3f9467c73811fc666dc40
Author: Michael Niedermayer <[email protected]>
AuthorDate: Wed Sep 23 23:52:30 2026 +0200
Commit: michaelni <[email protected]>
CommitDate: Sat Oct 3 21:04:31 2026 +0000
avformat/vivo: fail on a short read of a text header packet
Not really a security issue
Fixes: stale header text parsed after a short read
Fixes: gvif3SQQV4tm
Found-by: zhang xingxing
Suggested-by: zhang xingxing
Signed-off-by: Michael Niedermayer <[email protected]>
---
libavformat/vivo.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavformat/vivo.c b/libavformat/vivo.c
index c20788f8bb..20e51d0082 100644
--- a/libavformat/vivo.c
+++ b/libavformat/vivo.c
@@ -29,6 +29,7 @@
#include "libavutil/avstring.h"
#include "libavutil/parseutils.h"
#include "avformat.h"
+#include "avio_internal.h"
#include "demux.h"
#include "internal.h"
@@ -146,7 +147,8 @@ static int vivo_read_header(AVFormatContext *s)
break;
if (vivo->length <= 1024) {
- avio_read(s->pb, vivo->text, vivo->length);
+ if ((ret = ffio_read_size(s->pb, vivo->text, vivo->length)) < 0)
+ return ret;
vivo->text[vivo->length] = 0;
} else {
av_log(s, AV_LOG_WARNING, "too big header, skipping\n");
--
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]