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 20:50:21 +0000 (22:50 +0200)
commita3bd4b260eb9f0d5817f9b3d672844f127c51a0b
treeec6490d6f763d33268a5da2060047aad9c5ed9f6
parent51f6870c37cc29e1ea7e0c66df2fe505938b7561
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>
libavcodec/alsdec.c