avcodec/motionpixels: Check for vlc error in mp_get_vlc()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 15 Jun 2019 19:08:31 +0000 (21:08 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 27 Jun 2019 15:50:47 +0000 (17:50 +0200)
commitda081ecf69f4c46c6638abb28b0acac33c2be075
treee3ea2c81d13efa650e5073597065b7b1591fd464
parent479b70d2f84b340a66ade598454df968bf71cf5f
avcodec/motionpixels: Check for vlc error in mp_get_vlc()

Fixes: 15246/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MOTIONPIXELS_fuzzer-5168534407086080
Fixes: runtime error: index -1 out of bounds for type 'HuffCode [16]'

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 930cdef80ab695132d3de2128c3c23f2d698918b)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/motionpixels.c