mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/siren: Fix integer overflow in get_dw()
Fixes: signed integer overflow: 685813396 + 1803454769 cannot be represented in type 'int' Fixes: 21073/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SIREN_fuzzer-5744900508483584 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
c85bf16318
commit
3197b0099b
@ -363,7 +363,7 @@ typedef struct SirenContext {
|
||||
int sample_rate_bits;
|
||||
int region_size;
|
||||
|
||||
int dw1, dw2, dw3, dw4;
|
||||
unsigned dw1, dw2, dw3, dw4;
|
||||
|
||||
int absolute_region_power_index[32];
|
||||
float decoder_standard_deviation[32];
|
||||
|
Loading…
Reference in New Issue
Block a user