aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-04-07 22:27:50 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-05-14 00:21:49 +0200
commit44eabc5d5d9ed479cad1df0acc8f172093e44364 (patch)
tree82075aca3ab787fc27882aa648a0af7ba7d59647 /libavcodec
parent78fd652af442fd14156a1bdaec4741e79511b9ff (diff)
downloadffmpeg-44eabc5d5d9ed479cad1df0acc8f172093e44364.tar.gz
avcodec/dcadsp: Fix runtime error: signed integer overflow
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 9244b839b788e4677019041907ff5a4378a23490) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/dcadsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dcadsp.c b/libavcodec/dcadsp.c
index 4f1e933cfb..fade1a6c02 100644
--- a/libavcodec/dcadsp.c
+++ b/libavcodec/dcadsp.c
@@ -320,7 +320,7 @@ static void dmix_sub_c(int32_t *dst, const int32_t *src, int coeff, ptrdiff_t le
int i;
for (i = 0; i < len; i++)
- dst[i] -= mul15(src[i], coeff);
+ dst[i] -= (unsigned)mul15(src[i], coeff);
}
static void dmix_add_c(int32_t *dst, const int32_t *src, int coeff, ptrdiff_t len)