avcodec/alsdec: Fix integer overflow of raw_samples in decode_blocks()
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 26 Jul 2019 12:33:14 +0000 (14:33 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 4 Sep 2019 18:26:35 +0000 (20:26 +0200)
commit7e9bb72dd6eec7b5aead2fdb0d3ecea2df2029e4
treeafb563f0ac1bd53d011505b66dc5f119f9b1cb5d
parenteda64cda63a6ed33a110f87e6163e58b12a0a288
avcodec/alsdec: Fix integer overflow of raw_samples in decode_blocks()

Fixes: signed integer overflow: 2147483424 - -1772303236 cannot be represented in type 'int'
Fixes: 15708/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALS_fuzzer-5067890362941440

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