avcodec/vc1_block: Check get_vlc2() return before use
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 4 Aug 2019 06:32:58 +0000 (08:32 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 5 Aug 2019 17:34:33 +0000 (19:34 +0200)
commit889fdc690a3ff0166e24e3c6403bbd320041094a
tree09c58fb15ef2e914fc88373299665abe61db7d16
parent25aa7ddd315081a0c05b9b5715f4bbdb7d14c3ec
avcodec/vc1_block: Check get_vlc2() return before use

Fixes: index -1 out of bounds for type 'const uint8_t [185][2]'
Fixes: 15720/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MSS2_fuzzer-5666071933091840

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