avcodec/pngdec: Check bit depth for validity
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 19 Feb 2017 18:12:25 +0000 (19:12 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 19 Feb 2017 18:48:57 +0000 (19:48 +0100)
commit4279613a2652cdf2bee564f4b7244567e5ba91ba
treee83517c870472de9f46f12ecc2d0fe7da1d08b65
parent706757d26dd5e606c1745a4bb53fe45f6d6493cf
avcodec/pngdec: Check bit depth for validity

Fixes: runtime error: shift exponent 132 is too large for 32-bit type 'int'
Fixes: 609/clusterfuzz-testcase-4825202619842560

See 11.2.2 IHDR Image header

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