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:
6ea4287
)
avcodec/eatqi: Fix runtime error: signed integer overflow: 4466147 * 1075 cannot...
author
Michael Niedermayer
<michael@niedermayer.cc>
Wed, 10 May 2017 17:02:05 +0000
(19:02 +0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Wed, 10 May 2017 19:32:53 +0000
(21:32 +0200)
Fixes: 1443/clusterfuzz-testcase-minimized-
4826998612426752
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/eatqi.c
patch
|
blob
|
history
diff --git
a/libavcodec/eatqi.c
b/libavcodec/eatqi.c
index
f5ecacb
..
7252894
100644
(file)
--- a/
libavcodec/eatqi.c
+++ b/
libavcodec/eatqi.c
@@
-112,7
+112,7
@@
static inline void tqi_idct_put(AVCodecContext *avctx, AVFrame *frame,
static void tqi_calculate_qtable(TqiContext *t, int quant)
{
- const int qscale = (215 - 2*quant)*5;
+ const int
64_t
qscale = (215 - 2*quant)*5;
int i;
t->intra_matrix[0] = (ff_inv_aanscales[0] * ff_mpeg1_default_intra_matrix[0]) >> 11;