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>
Wed, 31 Jan 2018 22:47:15 +0000 (23:47 +0100)
commitb9948d52756a883afb1e7cebf9740f1094e1f3f3
treecdeb4dd21f6a32dae2a82254f24538a2b6ea9669
parent0036b62c99116ff5b08a78e977a663d21a7aa645
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