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/4898>
This commit is contained in:
Sebastian Dröge 2023-06-13 12:58:26 +03:00 committed by GStreamer Marge Bot
parent 518ecba8f9
commit 1d9b360708

View file

@ -794,6 +794,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;
}
}
}