avcodec/tiff: Check palette shift
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 14 Mar 2017 00:34:14 +0000 (01:34 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 16 Mar 2017 00:04:35 +0000 (01:04 +0100)
commitcfa10e11be4c17fdff0c77cba7c0b3d6ea99acea
treec569c168fa31ff04ec319915fca0d3a4dc7f973a
parent58e9c7f4a2fdce4bc5531a618c142f27117c5145
avcodec/tiff: Check palette shift

Fixes multiple  runtime error: shift exponent 792 is too large for 32-bit type 'unsigned int'

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/tiff.c