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:
38e79d9
)
avcodec/mimic: Fix runtime error: left shift of negative value -1
author
Michael Niedermayer
<michael@niedermayer.cc>
Sat, 6 May 2017 13:17:29 +0000
(15:17 +0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Sat, 6 May 2017 13:18:00 +0000
(15:18 +0200)
Fixes: 1365/clusterfuzz-testcase-minimized-
5624158450876416
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mimic.c
patch
|
blob
|
history
diff --git
a/libavcodec/mimic.c
b/libavcodec/mimic.c
index
0cc30ab
..
61ce1ce
100644
(file)
--- a/
libavcodec/mimic.c
+++ b/
libavcodec/mimic.c
@@
-262,7
+262,7
@@
static int vlc_decode_block(MimicContext *ctx, int num_coeffs, int qscale)
coeff = vlcdec_lookup[num_bits][value];
if (pos < 3)
- coeff
<<= 4
;
+ coeff
*= 16
;
else /* TODO Use >> 10 instead of / 1001 */
coeff = (coeff * qscale) / 1001;