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 21:23:25 +0000 (23:23 +0200)
commit393d6fc7395611a38792e3c271b2be42ac45e672
tree1c7a8874288f4e318d39bfe876c971acc1ed04df
parent9c85329cd02e9284892bf263ce6133b2fc479792
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>
libavcodec/snowdec.c