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, 28 Jun 2017 21:39:11 +0000 (23:39 +0200)
commitbc6ab72bc7af27189e7b524b97e45c6fcadab5cf
tree0fb4546fdb0b3c1b75b84c87c20028d3b1026b18
parentf0edab6e63ecee29cb68230100f0c2fb5468284c
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>
libavcodec/vb.c