GNOME Bugzilla – Bug 715143
xpath.c : Fix in If condition
Last modified: 2013-11-28 15:03:39 UTC
Created attachment 261387 [details] [review] Fixes the If condition in xpath.c In file: https://git.gnome.org/browse/libxml2/tree/xpath.c In function : xmlXPathCmpNodesExt switch (node2->type) { ----Some Code ---- case XML_PI_NODE: { ----Some Code --- if ((node2 == NULL) || (node2->type != XML_ELEMENT_NODE) || (0 <= (long) node1->content)) { ------------------ Here in If condition node2->content should be checked against 0, instead of node1->content. Attached patch from libxml2-2.9.1 version.
Indeed, good catch ! Commited as : https://git.gnome.org/browse/libxml2/commit/?id=fcd458318916809edc4fc4cd1ce2d5ba9aed4665 thanks ! Daniel