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, 14 Jun 2017 22:16:20 +0000 (00:16 +0200)
commit12245ab1f677074b8ff83e87f76a41aba692ccd6
tree46fe91be18dc7919f2857d5b996090b640a12749
parent0a87be404ab7e3f47e67e79160dcc9623e36835b
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>
libavcodec/mpeg4videodec.c