1From 2464652537fa5f3b89e71c31eed777b42fa64708 Mon Sep 17 00:00:00 2001 2From: Nick Wellnhofer <wellnhofer@aevum.de> 3Date: Wed, 18 May 2022 02:16:34 +0200 4Subject: [PATCH] Fix unintended fall-through in xmlNodeAddContentLen 5 6Reference:https://github.com/GNOME/libxml2/commit/2464652537fa5f3b89e71c31eed777b42fa64708 7Conflict:NA 8 9--- 10 tree.c | 7 ++++--- 11 1 file changed, 4 insertions(+), 3 deletions(-) 12 13diff --git a/tree.c b/tree.c 14index ed0a838..fe6f54a 100644 15--- a/tree.c 16+++ b/tree.c 17@@ -5879,10 +5879,11 @@ xmlNodeAddContentLen(xmlNodePtr cur, const xmlChar *content, int len) { 18 cur->content = xmlStrncatNew(cur->content, content, len); 19 cur->properties = NULL; 20 cur->nsDef = NULL; 21- break; 22- } 23- cur->content = xmlStrncat(cur->content, content, len); 24+ } else { 25+ cur->content = xmlStrncat(cur->content, content, len); 26+ } 27 } 28+ break; 29 case XML_DOCUMENT_NODE: 30 case XML_DTD_NODE: 31 case XML_HTML_DOCUMENT_NODE: 32-- 332.27.0 34 35