avcodec/alsdec: Fix integer overflow with buffer number
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 20 Jun 2019 22:47:17 +0000 (00:47 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 6 Jul 2019 21:08:37 +0000 (23:08 +0200)
commitfa2dbcfd8f4b1ed7b62c464fb509a6b3b9bf4ab2
tree4818f834b85415e88865ea9f5c366b938c9ef1ff
parented8e191bfb1f64612d9a751e5003f985d9adb402
avcodec/alsdec: Fix integer overflow with buffer number

Fixes: signed integer overflow: 65313 * 65313 cannot be represented in type 'int'
Fixes: 15290/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALS_fuzzer-5738074249625600

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