avcodec/vc1_block: Check for vlc error in vc1_decode_ac_coeff()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 15 Jun 2019 21:28:25 +0000 (23:28 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 8 Jul 2019 09:42:14 +0000 (11:42 +0200)
commit4d7ee3b0ff12c79a84ec29f9b876760795ef3d5d
treef35153607602f6e9125c78c537b9b7f8f9b2b602
parentac9d8e7c501cc1118d99b6226a7fbef4e0578c72
avcodec/vc1_block: Check for vlc error in vc1_decode_ac_coeff()

Fixes: index -1 out of bounds for type 'const uint8_t [185][2]'
Fixes: 15250/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMV3IMAGE_fuzzer-5648992869810176

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 79204a1fc8f1988f7d7e6cae2c3b68f513444d38)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/vc1_block.c