aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-05-25 23:01:27 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-05-25 23:03:53 +0200
commit8e87d146d798ca25d8f3a4520a6deb7946b39d73 (patch)
tree70c0607e945c185f66f38ccbd342b119362f8eab /libavcodec
parent356194fcb17375de2472f4cbff6ede48d6a374b2 (diff)
downloadffmpeg-8e87d146d798ca25d8f3a4520a6deb7946b39d73.tar.gz
avcodec/aacdec_fixed: Fix runtime error: signed integer overflow: -2147483648 * -1 cannot be represented in type 'int'
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>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/aacdec_fixed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aacdec_fixed.c b/libavcodec/aacdec_fixed.c
index 27547667ab..53a971c8d3 100644
--- 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;
}
}
}