diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-09 19:45:46 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-09 19:46:17 +0200 |
commit | f1a4dd5e480932ee580fb686988599d46bb71637 (patch) | |
tree | 5c26f5fc238f4fcb2665e782f24e5d961f3ea9d4 /libavcodec | |
parent | 62c5949beca2c95d6af5c74985467438d2295a66 (diff) | |
download | ffmpeg-f1a4dd5e480932ee580fb686988599d46bb71637.tar.gz |
avcodec/scpr: Fix multiple runtime error: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int'
Fixes: 1422/clusterfuzz-testcase-minimized-5030993939398656
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/scpr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/scpr.c b/libavcodec/scpr.c index 465926af19..ba1f65f2e9 100644 --- a/libavcodec/scpr.c +++ b/libavcodec/scpr.c @@ -161,7 +161,7 @@ static int get_freq(RangeCoder *rc, unsigned total_freq, unsigned *freq) static int decode0(GetByteContext *gb, RangeCoder *rc, unsigned cumFreq, unsigned freq, unsigned total_freq) { - int t; + unsigned t; if (total_freq == 0) return AVERROR_INVALIDDATA; |