avcodec/iff: finetune the palette size check in the mask case
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 22 Jun 2019 19:17:52 +0000 (21:17 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 27 Jun 2019 15:50:47 +0000 (17:50 +0200)
commit8ba9b195e7780f86260d3eb2023504dac10e7277
treeedee811493ad2a6f8d42ae1aa4cf274428cd12cf
parent4d2343825c04fdf0433678da2d58d6f342124e3f
avcodec/iff: finetune the palette size check in the mask case

Fixes: out of array access
Fixes: 15381/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_IFF_ILBM_fuzzer-5668057826983936

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 0f9789c8e37eb6d166729e876729beb21b7d5647)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/iff.c