[FFmpeg-cvslog] avformat/aaxdec: Check for empty segments
Michael Niedermayer
git at videolan.org
Thu Sep 1 18:15:05 EEST 2022
ffmpeg | branch: release/5.0 | Michael Niedermayer <michael at niedermayer.cc> | Mon Jun 27 10:29:25 2022 +0200| [024b94bab3e8960d60025cf155d16cad96dc5ba2] | committer: Michael Niedermayer
avformat/aaxdec: Check for empty segments
Fixes: Timeout
Fixes: 48154/clusterfuzz-testcase-minimized-ffmpeg_dem_AAX_fuzzer-5149094353436672
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit db31b3ea861c280e7fae282d06957ebd0d37c2d2)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=024b94bab3e8960d60025cf155d16cad96dc5ba2
---
libavformat/aaxdec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/aaxdec.c b/libavformat/aaxdec.c
index 9b1c7933ae..09fe8ebdf7 100644
--- a/libavformat/aaxdec.c
+++ b/libavformat/aaxdec.c
@@ -249,6 +249,8 @@ static int aax_read_header(AVFormatContext *s)
start = avio_rb32(pb);
size = avio_rb32(pb);
+ if (!size)
+ return AVERROR_INVALIDDATA;
a->segments[r].start = start + a->data_offset;
a->segments[r].end = a->segments[r].start + size;
if (r &&
More information about the ffmpeg-cvslog
mailing list