Commit 2bdb12ff authored by Kasimier T. Buchcik's avatar Kasimier T. Buchcik

Fixed a double-free in xmlXPathCompOpEvalToBoolean(), revealed by a

* xpath.c: Fixed a double-free in xmlXPathCompOpEvalToBoolean(),
  revealed by a Libxslt regression test.
parent 324c75b3
Thu Jun 29 12:48:00 CEST 2006 Kasimier Buchcik <libxml2-cvs@cazic.net>
* xpath.c: Fixed a double-free in xmlXPathCompOpEvalToBoolean(),
revealed by a Libxslt regression test.
Thu Jun 29 12:28:07 CEST 2006 Kasimier Buchcik <libxml2-cvs@cazic.net>
* xpath.c: Enhanced xmlXPathCompOpEvalToBoolean() to be also
......
......@@ -13915,7 +13915,9 @@ start:
return (0);
case XPATH_OP_VALUE:
resObj = (xmlXPathObjectPtr) op->value4;
break;
if (isPredicate)
return(xmlXPathEvaluatePredicateResult(ctxt, resObj));
return(xmlXPathCastToBoolean(resObj));
case XPATH_OP_SORT:
/*
* We don't need sorting for boolean results. Skip this one.
......@@ -13951,7 +13953,7 @@ start:
resObj = valuePop(ctxt);
if (resObj == NULL)
return(-1);
return(-1);
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment