avcodec/libvorbisdec: Check extradata size
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 17 Jun 2019 19:26:45 +0000 (21:26 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 29 Jun 2019 18:32:43 +0000 (20:32 +0200)
commit1aa0c2a06f005cac6e2f310f368a38af91682c62
tree17d25f284f5994048a7c86acda77ed9e39975ea2
parent5b8bce805c687e3558f0c77deea49aa97190e0ed
avcodec/libvorbisdec: Check extradata size

Fixes: out of array read
Fixes: 15261/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LIBVORBIS_fuzzer-5764908467093504

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