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>
Thu, 27 Jun 2019 15:50:47 +0000 (17:50 +0200)
commiteed8561f7cb845aa6df8daf4abf1945be18a4930
treedf713e98f19754b189eae707a64c35d06ff3bc2d
parent5fbc6dcdccf16996ce79f17f8c0ae37069447aed
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>
(cherry picked from commit 279d9a84af37cc1a7cf79c1cd667105eeb948611)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/vmnc.c