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:
a59505c
)
avcodec/ituh263dec: Fix runtime error: left shift of negative value -22
author
Michael Niedermayer
<michael@niedermayer.cc>
Tue, 21 Feb 2017 16:32:56 +0000
(17:32 +0100)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Tue, 21 Feb 2017 18:05:04 +0000
(19:05 +0100)
Fixes: 639/clusterfuzz-testcase-
5143866241974272
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/ituh263dec.c
patch
|
blob
|
history
diff --git
a/libavcodec/ituh263dec.c
b/libavcodec/ituh263dec.c
index
73aaa1d
..
9a2c8e6
100644
(file)
--- a/
libavcodec/ituh263dec.c
+++ b/
libavcodec/ituh263dec.c
@@
-524,7
+524,7
@@
retry:
}else{
level = SHOW_UBITS(re, &s->gb, 5);
SKIP_CACHE(re, &s->gb, 5);
- level |= SHOW_SBITS(re, &s->gb, 6)
<<5
;
+ level |= SHOW_SBITS(re, &s->gb, 6)
* (1<<5)
;
SKIP_COUNTER(re, &s->gb, 5 + 6);
}
}