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/4895>
This commit is contained in:
Sebastian Dröge 2023-06-13 12:58:26 +03:00 committed by Tim-Philipp Müller
parent 97c6d7495e
commit 069065adc4

View file

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