avcodec/mpeg4videodec: Fix overflow in virtual_ref computation
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 20 Jun 2017 11:52:06 +0000 (13:52 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 19 Jul 2017 13:26:37 +0000 (15:26 +0200)
commitada21bca5551977ab00c5a799b20dbff544ac3f9
treea919cd4154bee9b60937ddcbfafec2fa9df12cd1
parent72403ba2b9d6911f9a823090800fe133a85d7cd5
avcodec/mpeg4videodec: Fix overflow in virtual_ref computation

Fixes: runtime error: signed integer overflow: 262144 * -16120 cannot be represented in type 'int'
Fixes: 2292/clusterfuzz-testcase-minimized-6156080415506432

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