]> git.sesse.net Git - ffmpeg/commit
avcodec/iff: Check ham vs bpp
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 22 Jun 2019 17:21:50 +0000 (19:21 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 8 Jul 2019 07:00:21 +0000 (09:00 +0200)
commitf76d7352e05526fde7c607b9a9db536a5760af29
tree4496d2068980ae0b336826714930e787308e5498
parente9dd3c7126097d7c8d4f137db9957b81a219aa2c
avcodec/iff: Check ham vs bpp

This checks the ham value much stricter and avoids hitting cases which cannot be reached
with data from the libavformat demuxer.

Fixes: out of array access
Fixes: 15320/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_IFF_ILBM_fuzzer-5080476840099840
Fixes: 15423/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_IFF_ILBM_fuzzer-5630765833912320
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/iff.c