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 13:26:37 +0000 (15:26 +0200)
commit132037ad5b6eff8e446dc78e89c525bb2445b59e
treeb9e2f649b8c452658d99213eeebfa9a735108534
parentf3cb2eedebbc18c206c9d9cff03f09f91ed9da7a
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