1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-01-15 23:24:06 +03:00

Fix unintended fall-through in xmlNodeAddContentLen

This commit is contained in:
Nick Wellnhofer 2022-05-18 02:16:34 +02:00
parent d8f05db8f6
commit 2464652537

7
tree.c
View File

@ -5912,10 +5912,11 @@ xmlNodeAddContentLen(xmlNodePtr cur, const xmlChar *content, int len) {
cur->content = xmlStrncatNew(cur->content, content, len);
cur->properties = NULL;
cur->nsDef = NULL;
break;
}
cur->content = xmlStrncat(cur->content, content, len);
} else {
cur->content = xmlStrncat(cur->content, content, len);
}
}
break;
case XML_DOCUMENT_NODE:
case XML_DTD_NODE:
case XML_HTML_DOCUMENT_NODE: