avcodec/mpeg4videodec: Fix runtime error: signed integer overflow: 134527392 * 16...
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 3 Mar 2017 19:12:20 +0000 (20:12 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 5 Mar 2017 11:01:41 +0000 (12:01 +0100)
commitfab13bbbcdf92da165f1a6be94fbb8f87fac639a
treeebd1319239bad731b511c65bf66ff366cc3340d7
parentd757ddbaab8f03b3664788e620314b70ac791319
avcodec/mpeg4videodec: Fix runtime error: signed integer overflow: 134527392 * 16 cannot be represented in type 'int'

This checks the sprite delta intermediates for overflow
Fixes: 716/clusterfuzz-testcase-4890287480504320

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mpeg4videodec.c