avcodec/vmnc: Check location before use
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 21 May 2017 11:22:16 +0000 (13:22 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 15 Jun 2017 23:05:27 +0000 (01:05 +0200)
commiteed9fc2f61a3b7f04a89fe7600817679f8020aa1
tree42391bfd27fbb6fb68901e6684959a2158db5825
parent228b1e3f40a314def820f43b52f8fdd0731ede44
avcodec/vmnc: Check location before use

Fixes: runtime error: signed integer overflow: 65535 * 64256 cannot be represented in type 'int'
Fixes: 1717/clusterfuzz-testcase-minimized-5491696676634624

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