Commit e6648825 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/hq_hqadsp: Fix runtime error: signed integer overflow: 80359 * 30274...

avcodec/hq_hqadsp: Fix runtime error: signed integer overflow: 80359 * 30274 cannot be represented in type 'int'

Fixes: 1507/clusterfuzz-testcase-minimized-4955228300378112

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpegSigned-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 5ac17f18
......@@ -30,7 +30,7 @@
#define FIX_1_414 23170
#define FIX_2_613 21407 // divided by two to fit the range
#define IDCTMUL(a, b) ((a) * (b) >> 16)
#define IDCTMUL(a, b) ((int)((a) * (unsigned)(b)) >> 16)
static inline void idct_row(int16_t *blk)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment