diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2020-10-23 18:05:23 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2021-01-11 23:15:04 +0100 |
commit | fcc263caa9e11a1f94431a6d356a48003c636ef6 (patch) | |
tree | 77a2bb24f59af6ffa27b49666a1010d90b782261 /libavformat | |
parent | 7186ec88b98bc589f1403985ab10cc7f77461ec8 (diff) | |
download | ffmpeg-fcc263caa9e11a1f94431a6d356a48003c636ef6.tar.gz |
avformat/aaxdec: Check string before strcmp()
Fixes: NULL ptr dereference
Fixes: 26508/clusterfuzz-testcase-minimized-ffmpeg_dem_AAX_fuzzer-5694725249826816
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/aaxdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/aaxdec.c b/libavformat/aaxdec.c index 3db6e9bc6d..7d10e805ca 100644 --- a/libavformat/aaxdec.c +++ b/libavformat/aaxdec.c @@ -232,7 +232,7 @@ static int aax_read_header(AVFormatContext *s) int64_t col_offset; int flag, type; - if (strcmp(a->xcolumns[c].name, "data")) + if (!a->xcolumns[c].name || strcmp(a->xcolumns[c].name, "data")) continue; type = a->xcolumns[c].type; |