diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-03-20 01:55:39 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-03-21 20:52:08 +0100 |
commit | b15818642b4e8c4ea61bf93bc6920e71a834a535 (patch) | |
tree | 5154b73a5b586c0a9cf9c2328b75c1385a69d310 | |
parent | 387d96fcf54bb8361195fe8ac2c6688d35d5313f (diff) | |
download | ffmpeg-b15818642b4e8c4ea61bf93bc6920e71a834a535.tar.gz |
avcodec/mpegaudiodec_template: Fix 2 runtime error: signed integer overflow
Fixes: 873/clusterfuzz-testcase-5714546230558720
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/mpegaudiodec_template.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mpegaudiodec_template.c b/libavcodec/mpegaudiodec_template.c index a5ac5817f3..6e94cf75f3 100644 --- a/libavcodec/mpegaudiodec_template.c +++ b/libavcodec/mpegaudiodec_template.c @@ -1038,7 +1038,8 @@ static void compute_stereo(MPADecodeContext *s, GranuleDef *g0, GranuleDef *g1) { int i, j, k, l; int sf_max, sf, len, non_zero_found; - INTFLOAT (*is_tab)[16], *tab0, *tab1, tmp0, tmp1, v1, v2; + INTFLOAT (*is_tab)[16], *tab0, *tab1, v1, v2; + SUINTFLOAT tmp0, tmp1; int non_zero_found_short[3]; /* intensity stereo */ |