avcodec/snowdec: Fix integer overflow in decode_subband_slice_buffered()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 27 Aug 2017 22:30:33 +0000 (00:30 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 29 Aug 2017 19:21:05 +0000 (21:21 +0200)
commite89125faba1a1b3048fbd3e58376ce27f9586d9c
tree8da79fe44404b9435456370fbd9d848f4fbac73d
parent51ee15df5813c6e6225b7dcb74e085eb782e60af
avcodec/snowdec: Fix integer overflow in decode_subband_slice_buffered()

Fixes: runtime error: signed integer overflow: 267 * 8388608 cannot be represented in type 'int'
Fixes: 2743/clusterfuzz-testcase-minimized-5820652076400640

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