avformat/oggdec: Initialize return value from ogg_read_page() and check it everywhere
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 6 Jun 2020 17:14:04 +0000 (19:14 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 6 Jun 2020 23:21:55 +0000 (01:21 +0200)
commit108ee4b4a575932808fa4c80bc248fedae70e99f
tree3edda0694562473e976661c37ea9f40794cd969c
parent7826fbfeaacca0d7af1387bbfd367db3c6dfd5d5
avformat/oggdec: Initialize return value from ogg_read_page() and check it everywhere

Fixes regression since 9ad47762c17d2c6d06595aa17b88112baa91b72c
Fixes: out of array access
Fixes: 22172/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5658535590625280

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