aboutsummaryrefslogtreecommitdiffstats
path: root/xmlregexp.c
Commit message (Collapse)AuthorAgeFilesLines
* RESTRICT AUTOMERGE: Update libxml2 to 2.9.8HEADreplicant-6.0-0004-transitionreplicant-6.0-0004-rc6replicant-6.0-0004-rc5-transitionreplicant-6.0-0004-rc5replicant-6.0-0004-rc4replicant-6.0-0004-rc3replicant-6.0-0004-rc2replicant-6.0-0004cm-14.1cm-13.0akirilov2018-09-061-4/+11
| | | | | | | | | | | | | | Merge to pi-dev and restore Android.mk Bug: 79662501 Bug: 36809766 Bug: 36810305 Bug: 62151041 Test: manually verify functionality for regression Change-Id: Ife351c91c932eb92992656f8ea5c08724a220306 (cherry picked from commit 4e91cfdbb1a8624e5cd5a850d6e17da11d1e34a8)
* Merge remote-tracking branch 'goog/upstream-master' into mymergeXin Li2016-08-151-7/+13
| | | | | | BUG: 29834751 Change-Id: I88fc1d4f86bcbd0ac0fe9acdbe764f3d738c5f32 (cherry picked from commit e3d78e1fe0669e9c7083a4de19f1e06171849b28)
* Avoid Double Null CheckGaurav2014-05-091-2/+0
| | | | | Cleanup For https://bugzilla.gnome.org/show_bug.cgi?id=729851
* Fix potential NULL pointer dereferences in regexp codeGaurav2013-09-111-3/+5
| | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=707749 Fix 3 cases where we might dereference NULL
* Fix spelling of "length".Michael Wood2012-10-301-3/+3
|
* Big space and tab cleanupDaniel Veillard2012-09-111-116/+116
| | | | Remove all space before tabs and space and tabs at end of lines.
* Avoid a potential infinite recursionDaniel Veillard2012-08-271-0/+5
| | | | | Which can happen when eliminating epsilon transitions, as reported by Pavel Madr <pmadr@opentext.com>
* Fix a segfault on XSD validation on pattern errorDaniel Veillard2012-08-171-1/+7
| | | | | | | | | | | As reported by Sven <sven@e7o.de>: The following pattern will cause a segmentation fault in my Apache (using PHP5 to validate a XML against a XSD): <xs:pattern value="(.*)|"/> Fix a cascade of error handling failures which led to the crash in that scenario.
* undef ERROR if already definedPatrick R. Gansterer2012-05-101-0/+3
|
* Fix broken escape behaviour in regexp rangesDaniel Veillard2010-03-151-0/+11
|
* Fix a Relaxng bug raised by libvirt test suiteDaniel Veillard2009-09-231-5/+6
| | | | | | | | * xmlregexp.c: other fixes in 2.7.4 raised this internal error when comparing ranges, this affects among others detection of the determinism * test/relaxng/libvirt* result/relaxng/libvirt*: add a test case based on libvirt schemas and tests
* Release of libxml2-2.7.4Daniel Veillard2009-09-101-1/+1
| | | | | | | | * configure.in: new version * libxml.spec.in: cleanup * xmlregexp.c: fix a comment * doc/apibuild.py: update * doc/*: regenerate everything
* Chasing dead assignments reported by clang-scanDaniel Veillard2009-09-071-1/+3
| | | | | | | | * SAX2.c dict.c error.c hash.c nanohttp.c parser.c python/libxml.c relaxng.c runtest.c tree.c valid.c xinclude.c xmlregexp.c xmlsave.c xmlschemas.c xpath.c xpointer.c: mostly removing unneded affectations, but this led to a few real bugs and some part not yet understood (relaxng/interleave)
* Fix a bunch of scan 'dead increments' and cleanupDaniel Veillard2009-09-051-2/+2
| | | | | | | | * HTMLparser.c c14n.c debugXML.c entities.c nanohttp.c parser.c testC14N.c uri.c xmlcatalog.c xmllint.c xmlregexp.c xpath.c: fix unused variables, or unneeded increments as well as a couple of space issues * runtest.c: check for NULL before calling unlink()
* 492317 Fix Relax-NG validation problemsDaniel Veillard2009-08-311-10/+58
| | | | | | | | | * relaxng.c xmlregexp.c: a subtle problem when checking for compileable content model, if using the same elements in cases of choices. Handled by adding a special flag to the regexp compilation to detect transitions with different atoms using same strings. * test/relaxng/492317* result/relaxng/492317*: add the test to the regression suite
* 559410 - Regexp bug on (...)? constructsDaniel Veillard2009-08-221-2/+7
| | | | | | * xmlregexp.c: fix a regexp bug on some (...)? constructs * test/schemas/nvdcve* result/schemas/nvdcve*: add the tests to the regression suite
* 570702 fix a bug in regexp determinism checkingDaniel Veillard2009-08-121-1/+3
| | | | | | * xmlregexp.c: xmlFAComputesDeterminism was bugged as it removed as coalesced transitions on with sane source destination and atoms but not looking at counters
* add the testchar to 'make check' Volker Grabsch pointed out a typoDaniel Veillard2008-08-261-64/+0
| | | | | | | | | | | | | | | * Makefile.am: add the testchar to 'make check' * xmlschemas.c: Volker Grabsch pointed out a typo * xmlregexp.c: production [19] from XML Schemas regexps were a mistake removed in version REC-xmlschema-2-20041028, Volker Grabsch provided a patch to remove it * test/schemas/regexp-char-ref_0.xml test/schemas/regexp-char-ref_0.xsd test/schemas/regexp-char-ref_1.xsd result/schemas/regexp-char-ref_0_0 result/schemas/regexp-char-ref_1_0: Volker Grabsch also provided regession tests for this Daniel svn path=/trunk/; revision=3776
* avoid a regexp crash, should fix #523738 DanielDaniel Veillard2008-05-121-1/+2
| | | | | | | * xmlregexp.c: avoid a regexp crash, should fix #523738 Daniel svn path=/trunk/; revision=3744
* found a nasty bug in regexp automata build, reported by Ashwin and BjornDaniel Veillard2008-03-131-1/+22
| | | | | | | | * xmlregexp.c: found a nasty bug in regexp automata build, reported by Ashwin and Bjorn Reese Daniel svn path=/trunk/; revision=3705
* apply patch from Andrew Tosh to fix behaviour when '.' is used in aDaniel Veillard2008-02-081-1/+1
| | | | | | | | | | * xmlregexp.c: apply patch from Andrew Tosh to fix behaviour when '.' is used in a posCharGroup * test/schemas/poschargrp0_0.* result/schemas/poschargrp0_0_0*: added the test to the regression suite Daniel svn path=/trunk/; revision=3687
* remove a cut-and-paste copy error DanielDaniel Veillard2007-11-191-1/+0
| | | | | | | * xmlregexp.c: remove a cut-and-paste copy error Daniel svn path=/trunk/; revision=3665
* another nasty regexp case fixed. added to regression suite DanielDaniel Veillard2007-08-281-4/+24
| | | | | | | | | * xmlregexp.c: another nasty regexp case fixed. * test/regexp/ranges2 result/regexp/ranges2: added to regression suite Daniel svn path=/trunk/; revision=3658
* Enhanced to include port number (if not == 80) on the "Header:" URL (bugWilliam M. Brack2007-08-241-1/+1
| | | | | | | | * nanohttp.c: Enhanced to include port number (if not == 80) on the "Header:" URL (bug #469681). * xmlregexp.c: Fixed a typo causing a warning message. svn path=/trunk/; revision=3657
* try to fix for the nth time the automata generation in case of complexDaniel Veillard2007-08-221-37/+153
| | | | | | | | * xmlregexp.c: try to fix for the nth time the automata generation in case of complex ranges. I suppose that time it is actually okay Daniel svn path=/trunk/; revision=3650
* applied patch from Richard Jones to for the silent flag on valgrind whenDaniel Veillard2007-04-251-0/+6
| | | | | | | | | | | * xstc/Makefile.am doc/examples/Makefile.am Makefile.am: applied patch from Richard Jones to for the silent flag on valgrind when doing "make valgrind" * xmlregexp.c: raise a regexp error when '\' is misused to escape a standard character. Daniel svn path=/trunk/; revision=3606
* small enhancement for quantifier range with min occurs of 0; fixes bugWilliam M. Brack2007-04-111-0/+5
| | | | | | | * xmlregexp.c: small enhancement for quantifier range with min occurs of 0; fixes bug 425542. svn path=/trunk/; revision=3597
* fixed problem with 0x2d in Char Range (bug #420596) added regression testWilliam M. Brack2007-03-211-2/+12
| | | | | | | | * xmlregexp.c: fixed problem with 0x2d in Char Range (bug #420596) * test/regexp/bug420596, result/regexp/bug420596: added regression test for this svn path=/trunk/; revision=3594
* another small change on the algorithm for the elimination of epsilonDaniel Veillard2006-11-021-22/+6
| | | | | | * xmlregexp.c: another small change on the algorithm for the elimination of epsilon transitions, should help on #362989 too Daniel
* applied documentation patches from Markus Keim fixed one bug and added aDaniel Veillard2006-11-011-5/+32
| | | | | | | * tree.c: applied documentation patches from Markus Keim * xmlregexp.c: fixed one bug and added a couple of optimisations while working on bug #362989 Daniel
* applied fix from Christopher Boumenot for bug #362714 on regexps missingDaniel Veillard2006-10-171-1/+6
| | | | | | * xmlregexp.c: applied fix from Christopher Boumenot for bug #362714 on regexps missing ']' Daniel
* applied patch from Youri Golovanov fixing bug #316338 and adding a coupleDaniel Veillard2006-03-211-18/+34
| | | | | | | | | * xmlregexp.c: applied patch from Youri Golovanov fixing bug #316338 and adding a couple of optimizations in the regexp compilation engine. * test/regexp/bug316338 result/regexp/bug316338: added regression tests based on the examples provided in the bug report. Daniel
* end of first pass on coverity reports. DanielDaniel Veillard2006-03-101-15/+40
| | | | | | | * runtest.c schematron.c testAutomata.c tree.c valid.c xinclude.c xmlcatalog.c xmlreader.c xmlregexp.c xpath.c: end of first pass on coverity reports. Daniel
* bug fixes for #327167 as well as some cleanups and more thorough tests onDaniel Veillard2006-02-121-16/+267
| | | | | | * xmlregexp.c: bug fixes for #327167 as well as some cleanups and more thorough tests on atoms comparisons. Daniel
* compilation and doc build fixes from Michael Day DanielDaniel Veillard2006-01-021-1/+1
| | | | | | * xmlreader.c include/libxml/xmlreader.h xmlschemas.c: compilation and doc build fixes from Michael Day Daniel
* bug in xmlRegExecPushString2() pointed out by Sreeni Nair. DanielDaniel Veillard2005-12-281-1/+1
| | | | | | * xmlregexp.c: bug in xmlRegExecPushString2() pointed out by Sreeni Nair. Daniel
* applied patch from Geert Jansen to implement the save function to aDaniel Veillard2005-11-091-1/+1
| | | | | | | * xmlsave.c xmlIO.c include/libxml/xmlIO.h include/libxml/xmlsave.h: applied patch from Geert Jansen to implement the save function to a xmlBuffer, and a bit of cleanup. Daniel
* fix bug #319897, problem with counted atoms when the transition itself isDaniel Veillard2005-11-011-0/+14
| | | | | | | | * xmlregexp.c: fix bug #319897, problem with counted atoms when the transition itself is counted too * result/regexp/hard test/regexp/hard: augmented the regression tests with the problem exposed. Daniel
* avoid function parameters names 'list' as this seems to give troubles withDaniel Veillard2005-10-271-8/+8
| | | | | | | | * valid.c xmlregexp.c include/libxml/valid.h include/libxml/xmlregexp.h: avoid function parameters names 'list' as this seems to give troubles with VC6 and stl as reported by Samuel Diaz Garcia. Daniel
* commiting a some fixes and debug done yesterday in the London airport.Daniel Veillard2005-10-201-4/+25
| | | | | | * xmlregexp.c: commiting a some fixes and debug done yesterday in the London airport. Daniel
* removed the error message removed 2 instability warnings from functionDaniel Veillard2005-10-181-46/+329
| | | | | | | | | | * runtest.c: removed the error message * relaxng.c xmlschemas.c: removed 2 instability warnings from function documentation * include/libxml/schemasInternals.h: changed warning about API stability * xmlregexp.c: trying to improve runtime execution of non-deterministic regexps and automata. Not fully finished but should be way better. Daniel
* remove warnings under Windows.Rob Richards2005-10-071-7/+7
| | | | * schematron.c xmlregexp.c: remove warnings under Windows.
* seems a test to avoid duplicate transition is really needed at all times.Daniel Veillard2005-09-261-29/+32
| | | | | | | * xmlregexp.c: seems a test to avoid duplicate transition is really needed at all times. Luka Por gave an example hitting this. Changed back the internal API. Daniel
* detect combinatory explosion and return with a runtime error in thoseDaniel Veillard2005-09-151-1/+15
| | | | | | | | * xmlregexp.c: detect combinatory explosion and return with a runtime error in those case, c.f. #316338 though maybe we should not see such an explosion with that specific regexp, more checking needs to be done. Daniel
* regenerated fixed a compilation problem some cleanups and one bug fixDaniel Veillard2005-08-231-11/+101
| | | | | | | | * elfgcchack.h testapi.c doc/*: regenerated * schematron.c: fixed a compilation problem * xmlregexp.c include/libxml/xmlregexp.h: some cleanups and one bug fix * result/expr/base: slightly changes the number of Cons. Daniel
* rescanned code and rebuilt small cleanup cleanup problems from codeDaniel Veillard2005-08-221-3/+3
| | | | | | | | * elfgcchack.h testapi.c doc/*: rescanned code and rebuilt * xmlregexp.c: small cleanup * include/libxml/schematron.h include/libxml/xmlexports.h include/libxml/xmlversion.h.in: cleanup problems from code scanner Daniel
* exported xmlExpExpDerive(), added it to the testRegexp command line toolDaniel Veillard2005-08-221-0/+37
| | | | | | | * testRegexp.c xmlregexp.c include/libxml/xmlregexp.h: exported xmlExpExpDerive(), added it to the testRegexp command line tool when providing multiple expressions. Daniel
* fixed an uninitialized variable extended the API to add the parser,Daniel Veillard2005-08-221-19/+336
| | | | | | | | | | | | | * valid.c: fixed an uninitialized variable * xmlregexp.c include/libxml/xmlregexp.h: extended the API to add the parser, serializer and some debugging * include/libxml/xmlversion.h.in: made the new support compiled by default if Schemas is included * testRegexp.c: cleanup and integration of the first part of the new code with a special switch * xmllint.c: show up Expr in --version if compiled in * include/libxml/tree.h: moved the xmlBuffer definition up Daniel
* pushing the formal expression handling code to have it in CVs from now.Daniel Veillard2005-08-221-0/+1394
| | | | | | | * xmlregexp.c include/libxml/xmlregexp.h: pushing the formal expression handling code to have it in CVs from now. Not plugged, and misses APIs it's not compiled in yet. Daniel
* fixed a determinism detection problem exposed by ##other tests commited byDaniel Veillard2005-08-091-0/+10
| | | | | | | | | * xmlregexp.c: fixed a determinism detection problem exposed by ##other tests commited by Kasimier, also added a small speedup of determinism detection. * test/results/any6_2_0* any8_1_0* any7_1_2* any7_2_2*: added the results to the regression tests now Daniel