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)
commitcc9082dce19cc45bc8dbe7aee4efa86c56e2e319
tree3e961d0626179d581cdd6ef37343aa4326d4fcb0
parent34535941ae9440177345c0bb2347ce16a1e80887
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