avcodec/vmnc: Check available space against chunks before reget_buffer()
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 17 May 2019 21:28:49 +0000 (23:28 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 4 Jun 2019 11:06:41 +0000 (13:06 +0200)
commit279d9a84af37cc1a7cf79c1cd667105eeb948611
tree823ad2b8045aa198c196e80e0d86505f2acda157
parent89836ad5a7a80a353ae3710a00d9708fc6437464
avcodec/vmnc: Check available space against chunks before reget_buffer()

Fixes: Timeout (16sec -> 60ms)
Fixes: 14673/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VMNC_fuzzer-5640217517621248

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