git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c085c1
)
avcodec/wnv1: Fix runtime error: left shift of negative value -1
author
Michael Niedermayer
<michael@niedermayer.cc>
Fri, 5 May 2017 16:01:25 +0000
(18:01 +0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Fri, 5 May 2017 16:33:38 +0000
(18:33 +0200)
Fixes: 1338/clusterfuzz-testcase-minimized-
6485546354343936
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/wnv1.c
patch
|
blob
|
history
diff --git
a/libavcodec/wnv1.c
b/libavcodec/wnv1.c
index
9ff99b2
..
126c01a
100644
(file)
--- a/
libavcodec/wnv1.c
+++ b/
libavcodec/wnv1.c
@@
-52,7
+52,7
@@
static inline int wnv1_get_code(WNV1Context *w, int base_value)
if (v == 15)
return ff_reverse[get_bits(&w->gb, 8 - w->shift)];
else
- return base_value + ((v - 7) << w->shift);
+ return base_value + ((v - 7
U
) << w->shift);
}
static int decode_frame(AVCodecContext *avctx,