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:
872bac8
)
avcodec/ra144: Fix runtime error: signed integer overflow: 11184810 * 404 cannot...
author
Michael Niedermayer
<michael@niedermayer.cc>
Sun, 28 May 2017 19:38:24 +0000
(21:38 +0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Sun, 28 May 2017 19:38:55 +0000
(21:38 +0200)
Fixes: 1884/clusterfuzz-testcase-minimized-
4637425835966464
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/ra144.c
patch
|
blob
|
history
diff --git
a/libavcodec/ra144.c
b/libavcodec/ra144.c
index
690f7ff
..
4f8471d
100644
(file)
--- a/
libavcodec/ra144.c
+++ b/
libavcodec/ra144.c
@@
-1701,7
+1701,7
@@
void ff_subblock_synthesis(RA144Context *ractx, const int16_t *lpc_coefs,
if (cba_idx) {
cba_idx += BLOCKSIZE/2 - 1;
ff_copy_and_dup(ractx->buffer_a, ractx->adapt_cb, cba_idx);
- m[0] = (ff_irms(&ractx->adsp, ractx->buffer_a) * gval) >> 12;
+ m[0] = (ff_irms(&ractx->adsp, ractx->buffer_a) *
(unsigned)
gval) >> 12;
} else {
m[0] = 0;
}