avformat/vividas: Check buffer size before allocation
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 13 Jul 2019 17:57:21 +0000 (19:57 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 3 Aug 2019 15:44:23 +0000 (17:44 +0200)
commitc3ef24d9baf63f8c8794dfb2ef7192a64b586526
tree532e59c11081811e8ef79adff4205136c0f44cf3
parent8e41675e18682ee14a64acf6139d72d22ce669b6
avformat/vividas: Check buffer size before allocation

Fixes: out of array access
Fixes: 15365/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5716153105645568

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