avcodec/hevcdec: Check luma/chroma_log2_weight_denom
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 17 Feb 2018 20:42:34 +0000 (21:42 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 12 Apr 2018 22:35:15 +0000 (00:35 +0200)
commit37cd7f3375302b2c8e35946a53db13a8bd123b8b
tree6c5f60718ccbbb830fee9d0271d6754c559953b4
parent1a4f8de03d57490b6344ec2eeba3aa816cd1eb62
avcodec/hevcdec: Check luma/chroma_log2_weight_denom

Fixes: signed integer overflow: 3 + 2147483647 cannot be represented in type 'int'
Fixes: 5888/clusterfuzz-testcase-minimized-5634701067812864

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