]> git.sesse.net Git - ffmpeg/commit
libavformat/oggdec.c: Check return value from avio_read()
authorJohn Rummell <jrummell@chromium.org>
Mon, 30 Mar 2020 21:56:11 +0000 (14:56 -0700)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 1 Apr 2020 20:21:26 +0000 (22:21 +0200)
commitb7c67b1ae3657058b32b9235119d07529ad5cce1
treebdf05036b3c1d14d75a92822a982db4aa87d394c
parent5a0575e32c62765549675833a0e523769955b616
libavformat/oggdec.c: Check return value from avio_read()

If the buffer doesn't contain enough bytes when reading a stream,
fail rather than continuing on with unitialized data. Caught by
Chromium fuzzers (crbug.com/1054229).

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/oggdec.c