avcodec/truemotion2: Fix integer overflow in tm2_null_res_block()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 16 Mar 2019 01:30:57 +0000 (02:30 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 25 Mar 2019 14:32:06 +0000 (15:32 +0100)
commitd34202f4f036eb68f5b131138c167e79b5d97aa2
tree8699b5d883a372b88ef4939bb8833690400611ec
parent162b44e110cbb1f78014a971d5d3641cd30e3bc6
avcodec/truemotion2: Fix integer overflow in tm2_null_res_block()

Fixes: signed integer overflow: 1111638592 - -2122219136 cannot be represented in type 'int'
Fixes: 13441/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION2_fuzzer-5732769815068672

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