Browse Source

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 9244b839b7)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.0.8
Michael Niedermayer 8 years ago
parent
commit
487ea209f8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/dcadsp.c

+ 1
- 1
libavcodec/dcadsp.c View File

@@ -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)


Loading…
Cancel
Save