Commit 3197b009 authored by Michael Niedermayer's avatar Michael Niedermayer

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/ffmpegReviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent c85bf163
......@@ -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];
......
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