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>
Sun, 28 Oct 2018 00:22:42 +0000 (02:22 +0200)
commit88afcff2f5530ec08f2e559987d73945da640aea
tree9494eb694189c759982ca00b8671d84afca9fb56
parent812f7fae356af4ef679fe4fde09cce56b92726e2
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