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>
Sun, 18 Feb 2018 22:27:02 +0000 (23:27 +0100)
commitf82dd4c09b2decb033f1e339d4be81efd38554f1
treedd1556b34b1c45eb30acf16f233259e531782402
parentd2fc244293b531cf1ce175155f74202b697a7a23
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>
libavcodec/hevcdec.c