avcodec/qdmc: Check input space in qdmc_get_vlc()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 10 Oct 2019 16:26:44 +0000 (18:26 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 12 Oct 2019 11:21:50 +0000 (13:21 +0200)
commit2c7975fe6f5c734fce9c59e8418c7f2de15a558d
tree12189179586e0c30e9d1be5be40230d2780c507d
parentf76a899abc80512959ec7deab25bc9642c4feb73
avcodec/qdmc: Check input space in qdmc_get_vlc()

Fixes: Timeout (125sec -> 0.4sec)
Fixes: 18059/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_QDMC_fuzzer-5656195825664000

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/qdmc.c