avcodec/diracdec: Check perspective_exp and zrs_exp.
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 15 Aug 2017 01:32:43 +0000 (03:32 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 9 Sep 2017 23:33:28 +0000 (01:33 +0200)
commita33e375d7d4c8c309c85aa1a53e98bfc62ace5a1
tree4618b77fdef530860afe3d9b2a4d60b31b54f6e4
parentf5c6ce899fa51bc9c8687196506ff549a966ed68
avcodec/diracdec: Check perspective_exp and zrs_exp.

Fixes: undefined shift
Fixes: runtime error: shift exponent 264 is too large for 32-bit type 'int'
Fixes: 2860/clusterfuzz-testcase-minimized-4672811689836544

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 1e6cab874512070b36267a5a53fd053f90072fa2)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/diracdec.c