avformat/oggdec: Do not hardcode arbitrary and sometimes unavailable size
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 6 Jun 2020 17:30:30 +0000 (19:30 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 6 Jun 2020 23:21:55 +0000 (01:21 +0200)
commit8edfd0598d17a828cd59873351645ad1fbe8ff16
tree3b02c177f7abae70e8545797716b8e92f92043a5
parent108ee4b4a575932808fa4c80bc248fedae70e99f
avformat/oggdec: Do not hardcode arbitrary and sometimes unavailable size

Fixes: regression since e983197cbc93420b67aa7e811be47d7278c2c8a2
Fixes: out of array read
Fixes: 22185/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5662069073641472

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