avformat/vividas: Check n_sb_blocks against input space
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 4 Sep 2019 14:18:35 +0000 (16:18 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 24 Sep 2019 15:53:39 +0000 (17:53 +0200)
commit8e51f35f81c250892a97b6cf4b7c836ce7a3ffaf
treed216d85e24b73f6560a5db39ed689ebb83c3e74c
parentcede385018f5220910996a5158f5a793fed76d47
avformat/vividas: Check n_sb_blocks against input space

Fixes: OOM
Fixes: 16726/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5719320750981120

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/vividas.c