avcodec/tiff: Check for 12bit gray fax
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 12 Jan 2019 18:37:18 +0000 (19:37 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 21 Jan 2019 06:53:26 +0000 (07:53 +0100)
commit552733d48ba591eb8d6821da428ee2ef42429e49
treed2a4f5ff51aecdb320ca1e29ddf024896b501f65
parenta8b5990f4594d511a854f7d9920573d33c85253a
avcodec/tiff: Check for 12bit gray fax

Fixes: Assertion failure
Fixes: 11898/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TIFF_fuzzer-5759794191794176

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit ec28a85107cccece4dce17c0ccb633defe2d6e98)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/tiff.c