avcodec/truemotion2: Fix overflow in tm2_apply_deltas()
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 5 Jun 2018 00:09:59 +0000 (02:09 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 22 Oct 2018 23:44:40 +0000 (01:44 +0200)
commitaee71463fb2f1224e273d4f612ee7d6d63206219
tree20194b987a08788603af7573bd03b91071e19cb0
parentf144d5eb4977735e1ca7fcbebb67b3ac5903ea05
avcodec/truemotion2: Fix overflow in tm2_apply_deltas()

Fixes: signed integer overflow: 1077952576 + 1077952576 cannot be represented in type 'int'
Fixes: 7712/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION2_fuzzer-5056281753681920

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