avcodec/snowdec: Check mv_scale
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 13 Oct 2017 01:06:54 +0000 (03:06 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 14 Oct 2017 22:45:24 +0000 (00:45 +0200)
commit70d0cc8221618c715b9f6421f7185d56e59e0f40
treefe30be98c7d1a4ff2fac4f193e56947f08418949
parent1959c0f9f92104edcfd2c8648fabdfce01cef0f3
avcodec/snowdec: Check mv_scale

Fixes: runtime error: signed integer overflow: 2 * -1094995530 cannot be represented in type 'int'
Fixes: 3512/clusterfuzz-testcase-minimized-4812747210489856

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