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:
7b6a51f
)
avcodec/mss3: Change types in rac_get_model_sym() to match the types they are initial...
author
Michael Niedermayer
<michael@niedermayer.cc>
Sat, 6 May 2017 17:07:59 +0000
(19:07 +0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Sat, 6 May 2017 17:10:50 +0000
(19:10 +0200)
Fixes integer overflow
Fixes: 1372/clusterfuzz-testcase-minimized-
5712192982745088
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mss3.c
patch
|
blob
|
history
diff --git
a/libavcodec/mss3.c
b/libavcodec/mss3.c
index
7f38017
..
81b7e20
100644
(file)
--- a/
libavcodec/mss3.c
+++ b/
libavcodec/mss3.c
@@
-356,8
+356,9
@@
static int rac_get_model2_sym(RangeCoder *c, Model2 *m)
static int rac_get_model_sym(RangeCoder *c, Model *m)
{
- int
prob, prob2, helper,
val;
+ int val;
int end, end2;
+ unsigned prob, prob2, helper;
prob = 0;
prob2 = c->range;