mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-14 22:22:59 +02:00
avcodec/mv30: Use unsigned in idct_1d()
Fixes: signed integer overflow: 2110302399 + 39074947 cannot be represented in type 'int' Fixes: 27330/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MV30_fuzzer-5664923153334272 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 2eb641741766e98401f2a9d9a91c7afbdcb67d4b) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
e0c1af04b2
commit
7612e1b4e5
@ -102,7 +102,7 @@ static void get_qtable(int16_t *table, int quant, const uint8_t *quant_tab)
|
||||
}
|
||||
}
|
||||
|
||||
static inline void idct_1d(int *blk, int step)
|
||||
static inline void idct_1d(unsigned *blk, int step)
|
||||
{
|
||||
const unsigned t0 = blk[0 * step] + blk[4 * step];
|
||||
const unsigned t1 = blk[0 * step] - blk[4 * step];
|
||||
|
Loading…
x
Reference in New Issue
Block a user