avcodec/vb: Check input packet size to be large enough to contain flags
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 11 Aug 2019 22:21:49 +0000 (00:21 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 4 Sep 2019 18:26:35 +0000 (20:26 +0200)
commitb34033dec24aa7879d3e14f185d85fb4b9827a66
treef5d81ac20bc3fac4a114b8a4d5f4791a822b0c31
parent7a9b43671a3c9095b944b6c88fa4afe383774953
avcodec/vb: Check input packet size to be large enough to contain flags

Fixes: Timeout (->9sec)
Fixes: 16292/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VB_fuzzer-5747063496638464

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