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
(from parent 1:
9825659
)
avcodec/ac3dec_fixed: Fix runtime error: left shift of 419 by 23 places cannot be...
author
Michael Niedermayer
<michael@niedermayer.cc>
Sun, 4 Jun 2017 11:02:51 +0000
(13:02 +0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Sun, 4 Jun 2017 11:04:46 +0000
(13:04 +0200)
Fixes: 1352/clusterfuzz-testcase-minimized-
5757565017260032
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/ac3dec_fixed.c
patch
|
blob
|
history
diff --git
a/libavcodec/ac3dec_fixed.c
b/libavcodec/ac3dec_fixed.c
index
682fe93
..
5a868e4
100644
(file)
--- a/
libavcodec/ac3dec_fixed.c
+++ b/
libavcodec/ac3dec_fixed.c
@@
-69,7
+69,7
@@
static void scale_coefs (
int temp, temp1, temp2, temp3, temp4, temp5, temp6, temp7;
mul = (dynrng & 0x1f) + 0x20;
- shift = 4 - (
(dynrng << 23) >> 28
);
+ shift = 4 - (
sign_extend(dynrng, 9) >> 5
);
if (shift > 0 ) {
round = 1 << (shift-1);
for (i=0; i<len; i+=8) {