avcodec/truemotion2: Fix several integer overflows in tm2_update_block()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 4 May 2019 22:31:24 +0000 (00:31 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 27 Jun 2019 15:50:47 +0000 (17:50 +0200)
commit57e9b3cac1b646967ef4c228b1463338e403ee52
treee5e8b84463bd8154826107899ecf33329448dfac
parent75501f90fd203949903ba103e5f719e1530e1444
avcodec/truemotion2: Fix several integer overflows in tm2_update_block()

Fixes: signed integer overflow: -1877966852 + -469491713 cannot be represented in type 'int'
Fixes: 14561/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION2_fuzzer-5167608359288832

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 8eecf761a65baf4ce6f25c0a149819cc9414c0f0)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/truemotion2.c