1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/dcadsp: Fix 2 runtime error: signed integer overflow: -1958094138 - 1078906344 cannot be represented in type 'int'

Fixes: 722/clusterfuzz-testcase-5711268868521984

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2017-03-03 20:12:22 +01:00
parent d03d386162
commit 29638d4db9

View File

@ -347,7 +347,7 @@ static void dmix_scale_inv_c(int32_t *dst, int scale_inv, ptrdiff_t len)
dst[i] = mul16(dst[i], scale_inv); dst[i] = mul16(dst[i], scale_inv);
} }
static void filter0(int32_t *dst, const int32_t *src, int32_t coeff, ptrdiff_t len) static void filter0(SUINT32 *dst, const int32_t *src, int32_t coeff, ptrdiff_t len)
{ {
int i; int i;
@ -355,7 +355,7 @@ static void filter0(int32_t *dst, const int32_t *src, int32_t coeff, ptrdiff_t l
dst[i] -= mul22(src[i], coeff); dst[i] -= mul22(src[i], coeff);
} }
static void filter1(int32_t *dst, const int32_t *src, int32_t coeff, ptrdiff_t len) static void filter1(SUINT32 *dst, const int32_t *src, int32_t coeff, ptrdiff_t len)
{ {
int i; int i;