avcodec/snowdec: Fix integer overflow before htaps check
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 15 Jan 2018 02:03:36 +0000 (03:03 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 19 Feb 2018 01:40:54 +0000 (02:40 +0100)
commitdfb84488428bae5fe3aacecdb06f934c607a7e44
tree4d995b6e0a6eb9487e160d9b1d797a01f19adb04
parente5296dfffaad9e8c61db88d6862c23cae08e35bc
avcodec/snowdec: Fix integer overflow before htaps check

Fixes: runtime error: signed integer overflow: -1094995529 * 2 cannot be represented in type 'int'
Fixes: 4828/clusterfuzz-testcase-minimized-5100849937252352

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