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>
Sun, 17 Sep 2017 10:21:32 +0000 (12:21 +0200)
commit2173539519fab324de3492db59620fd793a0ee4c
treeecf7d74b465861e403c37709f9ae7ddfe9ccd156
parent816f7337bf3ed3e08afdc28278668d8eb81910cb
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