DO NOT MERGE: fix for the XPath nodeTab use-after-free bug from nmehta@ see https://bugs.chromium.org/p/chromium/issues/detail?id=705445 Bug: 36809819 Change-Id: I4832550032669a8e921bd46068281d9daf594ae1 (cherry picked from commit 7f671748797331e20da23db2d95a6116bb1c6c55)
diff --git a/xpath.c b/xpath.c index 67afbca..3472ff0 100644 --- a/xpath.c +++ b/xpath.c
@@ -4368,7 +4368,7 @@ } memset(ret, 0 , (size_t) sizeof(xmlXPathObject)); ret->type = XPATH_XSLT_TREE; - ret->boolval = 1; + ret->boolval = 0; ret->user = (void *) val; ret->nodesetval = xmlXPathNodeSetCreate(val); #ifdef XP_DEBUG_OBJ_USAGE