avcodec/alsdec: Fixes signed integer overflow in LSB addition
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 20 Jun 2019 22:47:16 +0000 (00:47 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 6 Jul 2019 21:07:41 +0000 (23:07 +0200)
commited8e191bfb1f64612d9a751e5003f985d9adb402
tree2c9e1eedd0ec62e2168109848a8cc3a9250174ca
parent75e838a6daa76a913361c7e725976b3b07a1312a
avcodec/alsdec: Fixes signed integer overflow in LSB addition

Fixes: signed integer overflow: 8 * 536870912 cannot be represented in type 'int'
Fixes: 15281/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALS_fuzzer-5744458785619968

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 7f527021df73b4792323f38f84a4bf2fbe5a2052)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/alsdec.c