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>
Mon, 22 Oct 2018 23:44:40 +0000 (01:44 +0200)
commitc2ac8d3147788de45abeacfa07af0d83ce1b366d
treee8c0d091d11f6d4ac20251a6e9b674e7b6bd443b
parent22f743e60201c3cc70dde007e69b03f0e35d267a
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