diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2020-03-18 22:20:43 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-03-19 04:19:25 +0300 |
commit | 3197b0099bb275bbaeb459c0ea103854eac10987 (patch) | |
tree | cf1ebe8cba4fbb60e1bfcd99ad6c70c8ff1470d7 /libavcodec/siren.c | |
parent | c85bf1631823e9089e59a474d5c6c0efc708c507 (diff) |
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>
Diffstat (limited to 'libavcodec/siren.c')
-rw-r--r-- | libavcodec/siren.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/siren.c b/libavcodec/siren.c index 76dfe62843..1c17d4505d 100644 --- a/libavcodec/siren.c +++ b/libavcodec/siren.c @@ -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]; |