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:03 +0000 (12:59 +0200)
commitf19ac557a57f30e7d8ce78768a6e844cff99a743
treeb4790425bcaa7d6d53af3219ed1cb967c88dff83
parentd006160115d1989ca08a2a96d36044d12795fa1a
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