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:
parent
577e2516d0
commit
da32c852a4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user