aboutsummaryrefslogtreecommitdiffstats
path: root/result/XPath/expr
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade libxml2 to 1a360c1c2ec950f478d55b31722ecf78f5698e97Haibo Huang2020-07-311-0/+8
| | | | | | | | | | | Also change upstream to github. This change moves away from stable release. Because we need CMakeLists.txt. It is not in any release yet. They are likely to release another stable version within this year. We can upgrade to that version when it is available. Bug: 157157503 Change-Id: If6f245dbabe36a114563d209c8e100b7e3083f20
* Check for integer overflow in xmlXPathFormatNumberNick Wellnhofer2017-06-012-0/+16
| | | | | | Check for overflow before casting double to int. Found with afl-fuzz and UBSan.
* Check XPath exponents for overflowNick Wellnhofer2017-05-311-0/+32
| | | | | | Avoid undefined behavior and wrong results with huge exponents. Found with afl-fuzz and UBSan.
* Parse small XPath numbers more accuratelyNick Wellnhofer2017-05-311-0/+8
| | | | | | | | | | | | | Don't count leading zeros towards the fraction size limit. This allows to parse numbers like 0.0000000000000000000000000000000000000000000000000000000001 which is the only standard-conformant way to represent such numbers, as scientific notation isn't allowed in XPath 1.0. (It is allowed in XPath 2.0 and in libxml2 as an extension, though.) Overall accuracy is still bad, see bug 783238.
* Rework XPath rounding functionsNick Wellnhofer2017-05-311-0/+68
| | | | | | | | | Use the C library's floor and ceil functions. The old code was overly complicated for no apparent reason and could result in undefined behavior when handling NaNs (found with afl-fuzz and UBSan). Fix wrong comment in xmlXPathRoundFunction. The implementation was already following the spec and rounding half up.
* Don't recurse into OP_VALUEs in xmlXPathOptimizeExpressionNick Wellnhofer2016-04-271-0/+4
| | | | | | | | The ch1 slot of OP_VALUEs contains an invalid value. Ignore it. Fixes bug #760325: https://bugzilla.gnome.org/show_bug.cgi?id=760325
* Fix parsing of NCNames in XPathNick Wellnhofer2016-04-231-0/+4
| | | | | | | | | The NCName parser would allow any NameChar as start character. For example, the following XPath expressions would compile: self::-abc self::0abc self::.abc
* applied patch from Richard Jinks for the namespace axis + fixed a memoryDaniel Veillard2002-07-011-0/+20
| | | | | | | | | | | * xpath.c: applied patch from Richard Jinks for the namespace axis + fixed a memory error. * parser.c parserInternals.c: applied patches from Peter Jacobi removing ctxt->token for good. * xmlschemas.c xmlschemastypes.c: fixed a few memory leaks popped out by the regression tests. * Makefile.am: patch for threads makefile from Gary Pennington Daniel
* patch from Richard Jinks for XPath substring() function new set of testsDaniel Veillard2002-06-101-4/+40
| | | | | | * xpath.c: patch from Richard Jinks for XPath substring() function * result/XPath/expr/strings test/XPath/expr/strings: new set of tests Daniel
* another XPath conformance patch from Richard Jinks DanielDaniel Veillard2002-04-242-0/+24
| | | | | | | * test/XPath/expr/floats test/XPath/expr/functions result/XPath/expr/floats result/XPath/expr/functions xpath.c: another XPath conformance patch from Richard Jinks Daniel
* another patch from Richard Jinks for substring conformance update of theDaniel Veillard2002-04-102-0/+24
| | | | | | | | * xpath.c: another patch from Richard Jinks for substring conformance * test/XPath/expr/floats test/XPath/expr/strings result/XPath/expr/floats result/XPath/expr/strings: update of the test suite to check those. Daniel
* more patches from Richard Jinks Updated tests though they show aDaniel Veillard2002-03-275-5/+321
| | | | | | | | | | | * trionan.c trionan.h xpath.c: more patches from Richard Jinks * test/XPath/expr/compare test/XPath/expr/equality test/XPath/expr/floats test/XPath/expr/functions test/XPath/expr/strings result/XPath/expr/compare result/XPath/expr/equality result/XPath/expr/floats result/XPath/expr/functions result/XPath/expr/strings: Updated tests though they show a divergence on Linux Daniel
* - xpath.c result/XPath/expr/floats : clarified and cleanupDaniel Veillard2001-05-031-3/+3
| | | | | printing of abnormal floats in tests. Daniel
* trio upgrade and integrationBjorn Reese2001-04-211-0/+8
|
* - xpath.c: finally implemented xmlXPathCompareNodeSetsDaniel Veillard2001-02-211-0/+52
| | | | | | - test/XPath/expr/floats results/XPath/expr/floats: added a test for float expressions Daniel
* More work and fixes on XPath:Daniel Veillard2000-10-045-0/+231
| | | | | | | - debugXML.c testXPath.c xpath.[ch]: More work on XPath/Xpointer, incorporated "(TOM)" <ptittom@free.fr> patches rebuilt the XPath examples with the extra test Daniel
* Revamped HTML parsing, lots of bug fixes for HTML stuff,Daniel Veillard1999-10-142-0/+48
| | | | | | | Added xmlValidGetValidElements and xmlValidGetPotentialChildren, Completed and cleaned up the tests, Added doc for new modules gnome-xml-xmlmemory.html and gnome-xml-nanohttp.html, Daniel
* Added XPath code (http://www.w3.org/TR/xpath), updated HTML support and ↵Daniel Veillard1999-07-153-0/+29
docs, Daniel