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>
Mon, 5 Jun 2017 21:16:54 +0000 (23:16 +0200)
commit5ceb27b0eb7ae28faf20cc5c9de6e4f9ea833f59
tree1fb7bf536d8dfe95b1c4d180b2605d1509c36400
parentea4b807c0a137eb842daa48942dcd3bc1fad70fc
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