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>
Wed, 31 Oct 2018 23:52:46 +0000 (00:52 +0100)
commitdc8ec1a5bc8539339f866c77f1f1b917b6a4e125
treeb439346e73c0c67ca0321fc96b4b320097e65055
parentb80d7d4a092048251336806095138ae5f495bad4
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