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>
Sat, 20 Jan 2018 20:32:04 +0000 (21:32 +0100)
commit2eecf3cf8eeae67697934df326e98df2149881e5
treeee8e7a98ffa066b14bf50c1b4b96beaa0b2aec8f
parent725353525e73bbe5b6b4d01528252675f2417a02
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>
libavcodec/snowdec.c