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 20:50:21 +0000 (22:50 +0200)
commit7f527021df73b4792323f38f84a4bf2fbe5a2052
tree5f50eea2b08b8a394d015f706d9d236d86478b9e
parent0794494c8f2f756e3c9384dba21c54f7d4ba9286
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>
libavcodec/alsdec.c