Skip to content
Snippets Groups Projects
Commit 2b8b7921 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avcodec/vp3dsp: Fix multiple signed integer overflow: 46341 * 47523 cannot be...

avcodec/vp3dsp: Fix multiple signed integer overflow: 46341 * 47523 cannot be represented in type 'int'

Fixes: 664/clusterfuzz-testcase-4917047475568640

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg


Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
parent 8696f254
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
#define xC6S2 25080 #define xC6S2 25080
#define xC7S1 12785 #define xC7S1 12785
#define M(a, b) (((a) * (b)) >> 16) #define M(a, b) ((int)((SUINT)(a) * (b)) >> 16)
static av_always_inline void idct(uint8_t *dst, int stride, static av_always_inline void idct(uint8_t *dst, int stride,
int16_t *input, int type) int16_t *input, int type)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment