avcodec/vb: Check vertical GMC component before multiply
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 28 Jun 2017 18:29:02 +0000 (20:29 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 19 Jul 2017 00:48:40 +0000 (02:48 +0200)
commitf6954a1482f3c9d6ce4c0db82c9f9863b3b09d8f
treef59dcfdff76c18786202423bae90c00eab0977ee
parenta6e90e5998ab15de7505b8ac7f7e094244581b51
avcodec/vb: Check vertical GMC component before multiply

Fixes: runtime error: signed integer overflow: 8224 * 663584 cannot be represented in type 'int'
Fixes: 2393/clusterfuzz-testcase-minimized-6128334993883136

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