]> git.sesse.net Git - ffmpeg/commit
avformat/icodec: Change order of operations to avoid NULL dereference
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 16 Oct 2020 17:05:23 +0000 (19:05 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 17 Oct 2020 12:36:11 +0000 (14:36 +0200)
commit3300f5c133650ba25f94531d40ecc94c79b84457
tree496dff6935bc8eba38659714346e9a90b01062a3
parent86228ebdb2f1c9c066473710c7e14eb8331265bf
avformat/icodec: Change order of operations to avoid NULL dereference

Fixes: SEGV on unknown address 0x000000000000
Fixes: 26379/clusterfuzz-testcase-minimized-ffmpeg_dem_ICO_fuzzer-5709011753893888
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Peter Ross
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/icodec.c