subparse: Fix non-closed tag handling.
authorEdward Hervey <edward@centricular.com>
Sat, 5 Nov 2022 06:34:27 +0000 (07:34 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 5 Nov 2022 16:19:53 +0000 (16:19 +0000)
commit24a0e5bdfdb42217ee93ff858abcc35bad821bf7
tree72df8c12a11836459e4fe589a7653d5ff28ef26d
parente283c99358e6fb79d8a3886fe84d63d813d0de08
subparse: Fix non-closed tag handling.

Unclear what the goal was, but we could end up reading way past the next_tag.

Instead just move everything from after the end tag ('>') to the next_tag.

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

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3340>
subprojects/gst-plugins-base/gst/subparse/gstsubparse.c