Skip to content

ogg: fix possible buffer overrun

Matthew Waters requested to merge ystreet/gstreamer:ogg-buffer-overrun into main

If an ogg stream does not match our expectations of how the end of a buffer may be structured, it was possible to read memory past the end of the buffer parsed by libogg. Include a bounds check for this case and stop parsing.

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3930

Merge request reports