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>
Thu, 12 Apr 2018 22:35:15 +0000 (00:35 +0200)
commit60bc7a6ec08a662c02e10eb1660d15e2a65ff0f5
tree7b1b7b01c314efc08330ec8558844504ba542333
parenta9fb2f8c80d4c76854773bf654175573942312a9
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