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>
Sun, 28 Oct 2018 00:22:42 +0000 (02:22 +0200)
commit812f7fae356af4ef679fe4fde09cce56b92726e2
tree36538f9c92409431487a6bb90668c75c968ba033
parent0ef49c0818f29150d74d01c264ac792acd5598dc
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>
(cherry picked from commit acba153a148782c08f9fd17f0c05b93468f3cbd0)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/snowdec.c