avcodec/diracdec: Fix integer overflow in INTRA_DC_PRED()
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 1 Sep 2017 17:56:10 +0000 (19:56 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 2 Sep 2017 21:54:16 +0000 (23:54 +0200)
commit92f4341ed113a3bb6ef36cbebcf10163d84a47d8
treeacb3902d4be0303b92dfa05bbbc5d32fce6144e2
parentb2aa633d663d4ed962ed92fcf5657df50521a8d9
avcodec/diracdec: Fix integer overflow in INTRA_DC_PRED()

Fixes: runtime error: signed integer overflow: 1168175789 + 1168178473 cannot be represented in type 'int'
Fixes: 3081/clusterfuzz-testcase-minimized-4807564879462400
Fixes: 2844/clusterfuzz-testcase-minimized-5561715838156800

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