avcodec/aacdec_template (fixed point): Check gain in decode_cce() to avoid undefined...
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 15 Jul 2017 20:22:52 +0000 (22:22 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 19 Jul 2017 02:03:11 +0000 (04:03 +0200)
commit1b1abf077d642fe38c2fd133cf18c99d4d7141b4
treea204d3d2b105309816630361db9743357c57ca57
parenta84ed3d01137ecfb31d3283f1a8bc9673468f188
avcodec/aacdec_template (fixed point): Check gain in decode_cce() to avoid undefined shifts later

Fixes: runtime error: shift exponent 47 is too large for 32-bit type 'int'
Fixes: 2581/clusterfuzz-testcase-minimized-4681474395602944

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 2886142e0c3b5f4304c6e2a2bd282770a8a47f93)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/aacdec_template.c