avcodec/truemotion2: Fix integer overflow in last loop in tm2_update_block()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 13 Jun 2019 17:45:50 +0000 (19:45 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 27 Jun 2019 15:50:47 +0000 (17:50 +0200)
commitef73b0da2df22f5f589692961d17d2294cd2a457
treef10a1239cd9a3ffa7a564d525942e3d787d09e2b
parent8ba9b195e7780f86260d3eb2023504dac10e7277
avcodec/truemotion2: Fix integer overflow in last loop in tm2_update_block()

Fixes: signed integer overflow: -1727985666 - 538976288 cannot be represented in type 'int'
Fixes: 15031/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION2_fuzzer-5100228035739648

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 3aecd0170413c7e56f19de4e34d093a2c4027c2a)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/truemotion2.c