avcodec/snowdec: Fix integer overflow with motion vector residual
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 20 Aug 2018 18:15:19 +0000 (20:15 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 25 Aug 2018 19:50:17 +0000 (21:50 +0200)
commitacba153a148782c08f9fd17f0c05b93468f3cbd0
tree100e7814a18505c7c6e7a6025820e90b68b96d26
parent2e23cfbb4246bf923ddecd03934f6756cb1cafcf
avcodec/snowdec: Fix integer overflow with motion vector residual

Fixes: signed integer overflow: -19818 + -2147483648 cannot be represented in type 'int'
Fixes: 9545/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SNOW_fuzzer-4928769537081344

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