avcodec/mpeg4videodec: Use 64 bit intermediates for sprite delta
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 8 Oct 2017 19:41:54 +0000 (21:41 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 13 Oct 2017 10:59:00 +0000 (12:59 +0200)
commit789ad4d361e1f285c086a4ab398eccd0f159b7c8
tree93c2d442fdb9e7defc2b27f3521ac29b1cd8a57b
parent6fa58eabb18c4641f0a02c1756e1daadc0d4427b
avcodec/mpeg4videodec: Use 64 bit intermediates for sprite delta

Fixes: runtime error: signed integer overflow: -104713 * 65536 cannot be represented in type 'int'
Fixes: 3453/clusterfuzz-testcase-minimized-5555554657239040
Fixes: 3528/clusterfuzz-testcase-minimized-6283628420005888

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