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:
356194f
)
avcodec/aacdec_fixed: Fix runtime error: signed integer overflow: -2147483648 * ...
author
Michael Niedermayer
<michael@niedermayer.cc>
Thu, 25 May 2017 21:01:27 +0000
(23:01 +0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Thu, 25 May 2017 21:03:53 +0000
(23:03 +0200)
Fixes: 1825/clusterfuzz-testcase-minimized-
6002833050566656
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
2754766
..
53a971c
100644
(file)
--- a/
libavcodec/aacdec_fixed.c
+++ b/
libavcodec/aacdec_fixed.c
@@
-187,7
+187,7
@@
static void subband_scale(int *dst, int *src, int scale, int offset, int len)
round = 1U << (s-1);
for (i=0; i<len; i++) {
out = (int)((int64_t)((int64_t)src[i] * c + round) >> s);
- dst[i] = out * ssign;
+ dst[i] = out *
(unsigned)
ssign;
}
}
}