Skip to content

Commit f854f3d

Browse files
Brian C. Youngandi34
authored andcommitted
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)
1 parent 3961607 commit f854f3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xpath.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4303,7 +4303,7 @@ xmlXPathNewValueTree(xmlNodePtr val) {
43034303
}
43044304
memset(ret, 0 , (size_t) sizeof(xmlXPathObject));
43054305
ret->type = XPATH_XSLT_TREE;
4306-
ret->boolval = 1;
4306+
ret->boolval = 0;
43074307
ret->user = (void *) val;
43084308
ret->nodesetval = xmlXPathNodeSetCreate(val);
43094309
#ifdef XP_DEBUG_OBJ_USAGE

0 commit comments

Comments
 (0)