avcodec/diracdec: Fix integer overflow in signed multiplication in UNPACK_ARITH()
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 26 Jul 2017 18:26:43 +0000 (20:26 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 28 Jul 2017 01:41:08 +0000 (03:41 +0200)
commit8c7b477b97fb8e9f10886f35dc578a2257567758
treeb4b5d9d6bbd8ab298616a9be514fffcd6d8fedc2
parent6a10b962e3053b9fc851fcce23a60ac653abdc8c
avcodec/diracdec: Fix integer overflow in signed multiplication in UNPACK_ARITH()

Fixes: runtime error: signed integer overflow: 1073741823 * 4 cannot be represented in type 'int'
Fixes: 2729/clusterfuzz-testcase-minimized-5902915464069120

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