avcodec/h264_slice: Fix integer overflow in implicit_weight_table()
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 4 Jan 2019 19:00:38 +0000 (20:00 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 21 Mar 2019 09:42:51 +0000 (10:42 +0100)
commit5a9170345a29f191269aab4999fac69ce3aa2d29
tree9734c4d72fd4fbd6ea67a868f25e042c556fddd2
parent11e8ea4d0a8531f26af161a9893057ce1e5d6af3
avcodec/h264_slice: Fix integer overflow in implicit_weight_table()

Fixes: signed integer overflow: 2 * 2132811760 cannot be represented in type 'int'
Fixes: 11156/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-6237685933408256

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