subparse: Skip after the end of a valid closing tag instead of only skipping <

This is a small optimization and avoids restarting the next parsing
iteration on already accepted data.

On its own it would also fix ZDI-CAN-20968 (see previous commit) but the
previous commit independently is also a valid fix for it.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4900>
This commit is contained in:
Sebastian Dröge 2023-06-13 12:58:26 +03:00 committed by GStreamer Marge Bot
parent 7632b0c2a0
commit 1a3ce801cf

View file

@ -793,6 +793,8 @@ subrip_fix_up_markup (gchar ** p_txt, gconstpointer allowed_tags_ptr)
} else {
--num_open_tags;
g_ptr_array_remove_index (open_tags, num_open_tags);
cur = end_tag + 1;
continue;
}
}
}