From 71d80c738b05e5a0eb6fd91b737ecf8c249f6179 Mon Sep 17 00:00:00 2001 From: antonsma <2657420042@qq.com> Date: Wed, 27 Dec 2023 19:58:56 +0800 Subject: [PATCH] =?UTF-8?q?CVE-2023-37328=20=E5=AE=89=E5=85=A8=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=EF=BC=9A-plugins-base1.0=E7=89=88=E6=9C=AC=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E5=AE=89=E5=85=A8=E6=BC=8F=E6=B4=9E=EF=BC=8C=E6=94=BB?= =?UTF-8?q?=E5=87=BB=E8=80=85=E5=88=A9=E7=94=A8=E8=AF=A5=E6=BC=8F=E6=B4=9E?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E6=89=A7=E8=A1=8C=E4=BB=BB=E6=84=8F=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gst/subparse/gstsubparse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst/subparse/gstsubparse.c b/gst/subparse/gstsubparse.c index 4254158..b793ef3 100644 --- a/gst/subparse/gstsubparse.c +++ b/gst/subparse/gstsubparse.c @@ -814,7 +814,7 @@ subrip_fix_up_markup (gchar ** p_txt, gconstpointer allowed_tags_ptr) } if (*next_tag == '<' && *(next_tag + 1) == '/') { - end_tag = strchr (cur, '>'); + end_tag = strchr (next_tag, '>'); if (end_tag) { const gchar *last = NULL; if (num_open_tags > 0) @@ -827,6 +827,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; } } }