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>
Sun, 21 May 2017 11:23:22 +0000 (13:23 +0200)
commitec2b76aab44f55be22eb12d86eb0dfd2eff68581
treeecc9f899e70b13286ecca9fdfd90a6a9f3892906
parent955db411929a9876d3cd016fbbb9c49b6362feba
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>
libavcodec/vmnc.c