avcodec/vb: Check for end of bytestream before reading blocktype
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 20 Aug 2018 20:19:23 +0000 (22:19 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 31 Oct 2018 23:52:46 +0000 (00:52 +0100)
commit347c50b0d4e7119e77edcd0871b5d9c841877af4
tree8cba1bbfa70d7dbc5040274ea00d968c2470462f
parentdc8ec1a5bc8539339f866c77f1f1b917b6a4e125
avcodec/vb: Check for end of bytestream before reading blocktype

Fixes: Timeout
Fixes: 9601/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VB_fuzzer-4550228702134272

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 1cbac9ce20d32806febf64cbd9f830e1485695ca)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/vb.c