avcodec/mpeg4videodec: Check sprite delta upshift against overflowing.
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 14 Jun 2017 21:55:17 +0000 (23:55 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 23 Aug 2017 11:15:18 +0000 (13:15 +0200)
commite33febfb86b892d2e1e1aa62e26c3719e0d7553b
tree4e4e201103ba7d24a074370fa35b8816435aee90
parent6145b27b71148d532bab1420dd88cada9e98c763
avcodec/mpeg4videodec: Check sprite delta upshift against overflowing.

Fixes: runtime error: signed integer overflow: -268386304 * 16 cannot be represented in type 'int'
Fixes: 2204/clusterfuzz-testcase-minimized-5616756909408256

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