avcodec/diracdec: Fix integer overflow in mv computation
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 18 Feb 2018 20:51:38 +0000 (21:51 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 12 Apr 2018 22:35:15 +0000 (00:35 +0200)
commitb9d5b1f05dadf6ab3062f59e7a2cbc482e655cb8
treec9ab1c99f68343e59c8f23fc2e7ff93007f35c05
parent4018d8586ffe1fc8d5f7f28df6c010c748d3fb75
avcodec/diracdec: Fix integer overflow in mv computation

Fixes: signed integer overflow: -2072 + -2147483646 cannot be represented in type 'int'
Fixes: 6097/clusterfuzz-testcase-minimized-5034145253163008

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 47e65ad63b3d067445c4de41a7718b83fc07767c)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/diracdec.c