1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

fuzz: Check text nodes after merging

Avoid exponential growth of text.
This commit is contained in:
Nick Wellnhofer 2024-03-20 13:45:13 +01:00
parent 577e2516d0
commit da32c852a4

View File

@ -2349,6 +2349,7 @@ LLVMFuzzerTestOneInput(const char *data, size_t size) {
if (result != NULL && result != node) {
/* Text node was merged */
removeNode(node);
checkContent(result);
/* Drop old parent of node */
if (oldNodeParent != NULL)
dropNode(oldNodeParent);