avcodec/alsdec: Fix integer overflow with shifting samples
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 19 Jun 2019 21:27:21 +0000 (23:27 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 6 Jul 2019 21:06:23 +0000 (23:06 +0200)
commit99745dc2f353be1eb97291bd501053709b7b2d61
tree32669dd5f6c4fb48a10bea1d6356d255930746a9
parentdcef55b5ff8e36d30100df956102ce190b835840
avcodec/alsdec: Fix integer overflow with shifting samples

Fixes: signed integer overflow: -346039050 * 8 cannot be represented in type 'int'
Fixes: 15283/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALS_fuzzer-5692700268953600

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