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:
7f50c25
)
avcodec/aacdec_fixed: Fix multiple runtime error: shift exponent 127 is too large...
author
Michael Niedermayer
<michael@niedermayer.cc>
Sun, 28 May 2017 01:34:09 +0000
(
03:34
+0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Sun, 28 May 2017 01:34:43 +0000
(
03:34
+0200)
Fixes: 1851/clusterfuzz-testcase-minimized-
5692607495667712
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/aacdec_fixed.c
patch
|
blob
|
history
diff --git
a/libavcodec/aacdec_fixed.c
b/libavcodec/aacdec_fixed.c
index
53a971c
..
950ce20
100644
(file)
--- a/
libavcodec/aacdec_fixed.c
+++ b/
libavcodec/aacdec_fixed.c
@@
-370,7
+370,9
@@
static void apply_dependent_coupling_fixed(AACContext *ac,
shift = (gain-1024) >> 3;
}
- if (shift < 0) {
+ if (shift < -31) {
+ // Nothing to do
+ } else if (shift < 0) {
shift = -shift;
round = 1 << (shift - 1);