[FFmpeg-devel] [PATCH 3/5] avformat/aaxdec: Check that segments table has been initialized
Michael Niedermayer
michael at niedermayer.cc
Sun Jan 31 23:56:03 EET 2021
Fixes: Timeout
Fixes: 29766/clusterfuzz-testcase-minimized-ffmpeg_dem_AAX_fuzzer-5635887566290944
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavformat/aaxdec.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavformat/aaxdec.c b/libavformat/aaxdec.c
index 7d10e805ca..c6d2d1c8d1 100644
--- a/libavformat/aaxdec.c
+++ b/libavformat/aaxdec.c
@@ -264,6 +264,11 @@ static int aax_read_header(AVFormatContext *s)
}
}
+ if (!a->segments[0].end) {
+ ret = AVERROR_INVALIDDATA;
+ goto fail;
+ }
+
st = avformat_new_stream(s, NULL);
if (!st) {
ret = AVERROR(ENOMEM);
--
2.17.1
More information about the ffmpeg-devel
mailing list