OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62c5949
)
avcodec/scpr: Fix multiple runtime error: signed integer overflow: 2147483647 + 1...
author
Michael Niedermayer
<michael@niedermayer.cc>
Tue, 9 May 2017 17:45:46 +0000
(19:45 +0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Tue, 9 May 2017 17:46:17 +0000
(19:46 +0200)
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>
libavcodec/scpr.c
patch
|
blob
|
history
diff --git
a/libavcodec/scpr.c
b/libavcodec/scpr.c
index
465926a
..
ba1f65f
100644
(file)
--- 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;