diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2021-01-31 22:05:18 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2021-03-13 21:02:31 +0100 |
commit | 4e7dbca74c1395082947bb1586c1da47f50b1d18 (patch) | |
tree | dc0888b8b1c5a3866d0b0411e617b546718acee1 | |
parent | 36ad2f41e30ad9f2a8ead76e0b1526b9712f0925 (diff) | |
download | ffmpeg-4e7dbca74c1395082947bb1586c1da47f50b1d18.tar.gz |
avformat/aaxdec: Check that segments table has been initialized
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@niedermayer.cc>
-rw-r--r-- | libavformat/aaxdec.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); |