mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avcodec/dct32_template: Fix runtime error: signed integer overflow: -1071326067 - 1088238847 cannot be represented in type 'int'
Fixes: 1731/clusterfuzz-testcase-minimized-5123972414832640 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
40fa6a2fa2
commit
a1cbf53c56
@ -123,8 +123,9 @@
|
||||
#define ADD(a, b) val##a += val##b
|
||||
|
||||
/* DCT32 without 1/sqrt(2) coef zero scaling. */
|
||||
void dct32(INTFLOAT *out, const INTFLOAT *tab)
|
||||
void dct32(INTFLOAT *out, const INTFLOAT *tab_arg)
|
||||
{
|
||||
const SUINTFLOAT *tab = tab_arg;
|
||||
SUINTFLOAT tmp0, tmp1;
|
||||
|
||||
SUINTFLOAT val0 , val1 , val2 , val3 , val4 , val5 , val6 , val7 ,
|
||||
|
Loading…
Reference in New Issue
Block a user