Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: third_party/libxml/chromium/libxml2-2.9.4-security-xpath-nodetab-uaf.patch

Issue 2797923004: Improve XML serialization, URI parsing, and XPath node set processing. (Closed)
Patch Set: Rebase. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/libxml/chromium/libxml2-2.9.4-security-xpath-nodetab-uaf.patch
diff --git a/third_party/libxml/chromium/libxml2-2.9.4-security-xpath-nodetab-uaf.patch b/third_party/libxml/chromium/libxml2-2.9.4-security-xpath-nodetab-uaf.patch
new file mode 100644
index 0000000000000000000000000000000000000000..ecf93074a68068ccd23615b57fd907fd58218e48
--- /dev/null
+++ b/third_party/libxml/chromium/libxml2-2.9.4-security-xpath-nodetab-uaf.patch
@@ -0,0 +1,15 @@
+not upstream yet, fix from nmehta@
+see https://docs.google.com/document/d/1-Cd_Yq8MZ7am2ZhKhbDhqZ_L0aLJPBg0w1QLXGVoNmY/edit
+and https://bugs.chromium.org/p/chromium/issues/detail?id=705445
+
+--- src/xpath.c 2016-12-25 17:26:52.000000000 -0800
++++ src/xpath.c 2017-03-30 11:15:41.000000000 -0700
+@@ -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

Powered by Google App Engine
This is Rietveld 408576698