[FFmpeg-cvslog] avcodec/diracdec: Fix integer overflow in INTRA_DC_PRED()
Michael Niedermayer
git at videolan.org
Sun Sep 17 13:59:33 EEST 2017
ffmpeg | branch: release/3.2 | Michael Niedermayer <michael at niedermayer.cc> | Fri Sep 1 19:56:10 2017 +0200| [2173539519fab324de3492db59620fd793a0ee4c] | committer: Michael Niedermayer
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 at niedermayer.cc>
(cherry picked from commit 2a0823ae966be3ad40e5dba6ec4c4dc1e8c6bcad)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2173539519fab324de3492db59620fd793a0ee4c
---
libavcodec/diracdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/diracdec.c b/libavcodec/diracdec.c
index e147f10564..46e8377bc9 100644
--- a/libavcodec/diracdec.c
+++ b/libavcodec/diracdec.c
@@ -580,7 +580,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 ->
More information about the ffmpeg-cvslog
mailing list