diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-09-01 19:56:10 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-09-10 01:33:28 +0200 |
commit | 73427f5c7499bcc07444abced9b79df5b2a27229 (patch) | |
tree | b064d9775571f7aeda1822e6123ffa51c28cf12d | |
parent | 9d3a7c82a669a1a1c8e3904c65ded19e80d16edc (diff) | |
download | ffmpeg-73427f5c7499bcc07444abced9b79df5b2a27229.tar.gz |
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>
-rw-r--r-- | libavcodec/diracdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/diracdec.c b/libavcodec/diracdec.c index b5aa22c690..1498dbde0a 100644 --- a/libavcodec/diracdec.c +++ b/libavcodec/diracdec.c @@ -586,7 +586,7 @@ static inline void codeblock(DiracContext *s, SubBand *b, } \ INTRA_DC_PRED(8, int16_t) -INTRA_DC_PRED(10, int32_t) +INTRA_DC_PRED(10, uint32_t) /** * Dirac Specification -> |