avcodec/vorbisdec: Check get_vlc2() failure
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 7 Jul 2019 23:18:05 +0000 (01:18 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 4 Sep 2019 18:26:35 +0000 (20:26 +0200)
commit948e655d133a1f2d5ca7cdcda6f570fcad0fbcc7
tree49f2cf30008391739cc3a2c25bbecbce92f8f4ef
parent92e021ff951f92d8e27d5e8137abd58f3c03aedf
avcodec/vorbisdec: Check get_vlc2() failure

Fixes: out of array read
Fixes: 16510/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VORBIS_fuzzer-5754510382727168

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 07b948fe60789064d7c784d47b8fe798a9a4d2b9)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/vorbisdec.c