aboutsummaryrefslogtreecommitdiffstats
path: root/test
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-0620-1/+86
| | | | | | | | | | | | | | 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)
* DO NOT MERGE: Fix XPointer paths beginning with range-toBrian C. Young2017-04-171-0/+1
| | | | | | | | | | | | | | | | | The old code would invoke the broken xmlXPtrRangeToFunction. range-to isn't really a function but a special kind of location step. Remove this function and always handle range-to in the XPath code. The old xmlXPtrRangeToFunction could also be abused to trigger a use-after-free error with the potential for remote code execution. Found with afl-fuzz. Fixes CVE-2016-5131. Bug: 36554209 Change-Id: I2bd369290a884c432d16796884d48db6285f8502 (cherry picked from commit e875e1cd1fc92fd2daa57826024125cbd0b195c7)
* Merge remote-tracking branch 'goog/upstream-master' into mymergeXin Li2016-08-1517-0/+428
| | | | | | BUG: 29834751 Change-Id: I88fc1d4f86bcbd0ac0fe9acdbe764f3d738c5f32 (cherry picked from commit e3d78e1fe0669e9c7083a4de19f1e06171849b28)
* Fix a bug in CData error handling in the push parserDaniel Veillard2015-09-181-0/+1
| | | | | | | For https://bugzilla.gnome.org/show_bug.cgi?id=754947 The checking function was returning incorrect args in some cases Adds the test to teh reg suite and fix one of the existing test output
* Fix a bug on name parsing at the end of current input bufferDaniel Veillard2015-09-151-0/+1
| | | | | | | | For https://bugzilla.gnome.org/show_bug.cgi?id=754946 When hitting the end of the current input buffer while parsing a name we could end up loosing the beginning of the name, which led to various issues.
* Fix the spurious ID already defined errorDaniel Veillard2015-09-102-0/+11
| | | | | | For https://bugzilla.gnome.org/show_bug.cgi?id=737840 the fix for 724903 introduced a regression on external entities carrying IDs, revert that patch in part and add a specific test to avoid readding it
* Fix support for except in nameclassesDaniel Veillard2015-03-164-0/+17
| | | | | | | For https://bugzilla.gnome.org/show_bug.cgi?id=565219 The code was imply missing even if simple, added a few regression tests.
* Regression test for bug #695699Nick Wellnhofer2015-03-081-0/+1
|
* Add a couple of XPath testsNick Wellnhofer2015-03-081-0/+5
|
* Allow attributes on descendant-or-self axisNick Wellnhofer2015-03-081-0/+1
| | | | | | | | | If the context node is an attribute, the attribute itself is on the descendant-or-self axis. The principal node type of this axis is element, so the only node test that can return the attribute is "node()". In other words, "@attr/descendant-or-self::node()" is equivalent to "@attr". This matches the behavior of Saxon-CE.
* Adding example from bugs 738805 to regression testsDaniel Veillard2014-10-231-0/+16
| | | | | | For https://bugzilla.gnome.org/show_bug.cgi?id=738805 Tortuous test case provided by pierre.labastie@neuf.fr
* Implement choice for name classes on attributesShaun McCance2013-11-283-0/+21
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=710744
* Fix a parsing bug on non-ascii element and CR/LF usageDaniel Veillard2013-05-221-0/+6
| | | | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=698550 Somehow the behaviour of the internal parser routine changed slightly when encountering CR/LF, which led to a bug when parsing document with non-ascii Names
* Added a regression tests from bug 694228 dataDaniel Veillard2013-03-272-0/+8
| | | | Provided by Mark Rowe <mrowe@apple.com>
* Do not fetch external parsed entitiesDaniel Veillard2012-07-231-0/+5
| | | | | | | | | Unless explicietely asked for when validating or replacing entities with their value. Problem pointed out by Tom Lane <tgl@redhat.com> * parser.c: do not load external parsed entities unless needed * test/errors/extparsedent.xml result/errors/extparsedent.xml*: add a regression test to avoid change of the behaviour in the future
* HTML parser error with <noscript> in the <head>Denis Pauk2012-05-111-0/+10
| | | | | | | | | For https://bugzilla.gnome.org/show_bug.cgi?id=615785 When the <noscript> is found, <head> is closed and a <body> element is created. The real <body id="xxx"> gets skipped over, so I can't see any of the body's attributes. Just don't close <head> when encountering a <noscript> Add a regression test too
* XSD: optional element in complex type extensionRemi Gacogne2012-05-112-0/+39
| | | | | | | | | For https://bugzilla.gnome.org/show_bug.cgi?id=609796 Libxml2 fails to validate an instance document against a schema if an element whose type is a complex extension of some base type with an optional child element and that child element is not specified in the instance document. For example, suppose I have some complex type BaseType that is defined to have one child element in a sequence group that has minOccurs set to 0
* Add HTML parser support for HTML5 meta charset encoding declarationDenis Pauk2012-05-101-0/+8
| | | | | | | | | | | | | | | | | | | | | | For https://bugzilla.gnome.org/show_bug.cgi?id=655218 http://www.w3.org/TR/2011/WD-html5-20110525/semantics.html#the-meta-element """ The charset attribute specifies the character encoding used by the document. This is a character encoding declaration. If the attribute is present in an XML document, its value must be an ASCII case-insensitive match for the string "UTF-8" (and the document is therefore forced to use UTF-8 as its encoding). """ However, while <meta http-equiv="Content-Type" content="text/html; charset=utf8"> works, <meta charset="utf8"> does not. While libxml2 HTML parser is not tuned for HTML5, this is a simple addition Also added a testcase
* 595792 fixing a RelaxNG bug introduced in 2.7.4Daniel Veillard2009-09-243-0/+23
| | | | | | | * relaxng.c: refs definitions added from inported schemas should not be processed as refs from the main schemas * test/relaxng/595792* result/relaxng/595792*: add the test to the regression suite
* Fix a Relaxng bug raised by libvirt test suiteDaniel Veillard2009-09-232-0/+1281
| | | | | | | | * 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
* 492317 Fix Relax-NG validation problemsDaniel Veillard2009-08-314-0/+28
| | | | | | | | | * 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
* 558452 fight with reg test and error reportDaniel Veillard2009-08-266-0/+46
| | | | | | | | * relaxng.c: tiny fix and provide more context on some errors * result/relaxng/558452_0* test/relaxng/558452*: add some regression tests for the bugs * Makefile.am runtest.c: fight with the fact streaming error messages can differ due to missing node context
* 579746 XSD validation not correct / nilable groupsDaniel Veillard2009-08-268-0/+51
| | | | | | | | | * xmlschemas.c: when a particle need to be processed via counted transition, if the group is nillable, the counting won't work, so keep track of nillable subset as they are built and generate the appropriate epsilon transitions as needed * test/schemas/579746* result/schemas/579746*: add related test cases based on the bug report
* 566012 part 2 fix regresion tests and push modeDaniel Veillard2009-08-262-0/+1
| | | | | | | | * test/utf16bebom.xml: regression test showed that this test case was broken but previous behaviour would not detect it ! * parser.c: fix 566012 for the push mode of the parser, tricky ! * test/ebcdic_566012.xml result//ebcdic_566012.xml*: add the test to the regression suite
* 559410 - Regexp bug on (...)? constructsDaniel Veillard2009-08-222-0/+5733
| | | | | | * xmlregexp.c: fix a regexp bug on some (...)? constructs * test/schemas/nvdcve* result/schemas/nvdcve*: add the tests to the regression suite
* 446613 small validation bug mixed content with NSDaniel Veillard2009-08-212-0/+24
| | | | | | | * valid.c: fix a bug when valdating mixed content lists and some name use namespaces prefixes. * result/valid/notes.xml* test/valid/dtds/notes.dtd * test/valid/notes.xml: add the test case to the regression suite
* Test case for 570702Daniel Veillard2009-08-122-0/+38
|
* 582906 XSD validating multiple imports of the same schemaJason Childs2009-08-0712-0/+129
| | | | | | | | * xmlschemas.c: When validating a schema that includes the same file that has no targetNamespace defined an internal erro was thrown, depending on the orig namespace that should be allowed though * test/schemas/582906-* result/schemas/582906-*: 2 tests case, one where this is allowed, and one where this is forbidden
* Bug 582887 – problems validating complex schemasJason Childs2009-08-075-0/+55
| | | | | | | * xmlschemas.c: fixes the problem faced when importing the same schemas multiple times but from different places which is allowed * test/schemas/582887* result/schemas/582887*: adding the specific test to the regressions
* Aleksey Sanin support for c14n 1.1Aleksey Sanin2009-07-0955-2/+724
| | | | | | | | | * c14n.c include/libxml/c14n.h: adds support for C14N 1.1, new flags at the API level * runtest.c Makefile.am testC14N.c xmllint.c: add support in CLI tools and test binaries * result/c14n/1-1-without-comments/* test/c14n/1-1-without-comments/*: add a new batch of tests
* preparing the release of 2.7.2 fix the Solaris portability issueDaniel Veillard2008-10-031-0/+6
| | | | | | | | | | | | * configure.in doc/* NEWS: preparing the release of 2.7.2 * dict.c: fix the Solaris portability issue * parser.c: additional cleanup on #554660 fix * test/ent13 result/ent13* result/noent/ent13*: added the example in the regression test suite. * HTMLparser.c: handle leading BOM in htmlParseElement() Daniel svn path=/trunk/; revision=3799
* fix an HTML parsing error on large data sections reported by Mike Day addDaniel Veillard2008-09-251-0/+182
| | | | | | | | | | | * HTMLparser.c: fix an HTML parsing error on large data sections reported by Mike Day * test/HTML/utf8bug.html result/HTML/utf8bug.html.err result/HTML/utf8bug.html.sax result/HTML/utf8bug.html: add the reproducer to the test suite daniel svn path=/trunk/; revision=3797
* completely different fix for the recursion detection based on entityDaniel Veillard2008-08-2810-0/+883
| | | | | | | | | | | | | | | * parser.c include/libxml/parser.h: completely different fix for the recursion detection based on entity density, big cleanups in the entity parsing code too * result/*.sax*: the parser should not ask for used defined versions of the predefined entities * testrecurse.c: automatic test for entity recursion checks * Makefile.am: added testrecurse * test/recurse/lol* test/recurse/good*: a first set of tests for the recursion Daniel svn path=/trunk/; revision=3783
* add the testchar to 'make check' Volker Grabsch pointed out a typoDaniel Veillard2008-08-263-0/+47
| | | | | | | | | | | | | | | * 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
* rewrite the URI parser to update to rfc3986 (from 2396) removed the errorDaniel Veillard2008-08-041-9/+0
| | | | | | | | | | | * uri.c include/libxml/uri.h: rewrite the URI parser to update to rfc3986 (from 2396) * test/errors/webdav.xml result/errors/webdav.xml*: removed the error test, 'DAV:' is a correct URI under 3986 * Makefile.am: small cleanup in make check Daniel svn path=/trunk/; revision=3763
* fix various attribute normalisation problems reported by Ashwin thisDaniel Veillard2008-03-253-0/+40
| | | | | | | | | | | | | | * parser.c: fix various attribute normalisation problems reported by Ashwin * result/c14n/without-comments/example-4 result/c14n/with-comments/example-4: this impacted the result of two c14n tests :-\ * test/att9 test/att10 test/att11 result//att9* result//att10* result//att11*: added 3 specific regression tests coming from the XML spec revision and from Ashwin Daniel svn path=/trunk/; revision=3715
* fix a problem reported by Ashwin for system parameter entities referencedDaniel Veillard2008-03-243-0/+6
| | | | | | | | | | | | * parser.c: fix a problem reported by Ashwin for system parameter entities referenced from entities in external subset, add a specific loading routine. * test/valid/dtds/external.ent test/valid/dtds/external2.ent test/valid/t11.xml result/valid/t11.xml*: added the test to the regression suite Daniel svn path=/trunk/; revision=3713
* fix handling of empty CDATA nodes as reported and discussed around #514181Daniel Veillard2008-03-071-0/+4
| | | | | | | | | | | * xmlsave.c parser.c: fix handling of empty CDATA nodes as reported and discussed around #514181 and associated patches * test/emptycdata.xml result/emptycdata.xml* result/noent/emptycdata.xml: added a specific test in the regression suite. Daniel svn path=/trunk/; revision=3701
* poblem with encoding detection for UTF-16 reported by Ashwin and found byDaniel Veillard2008-03-063-0/+8
| | | | | | | | | | | * encoding.c: poblem with encoding detection for UTF-16 reported by Ashwin and found by Bill * test/valid/dtds/utf16b.ent test/valid/dtds/utf16l.ent test/valid/UTF16Entity.xml result/valid/UTF16Entity.xml*: added the example to the regression tests Daniel svn path=/trunk/; revision=3700
* apply patch from Andrew Tosh to fix behaviour when '.' is used in aDaniel Veillard2008-02-082-0/+16
| | | | | | | | | | * 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
* fix a memeory leak in internal subset parsing with a fix from Ashwin addDaniel Veillard2008-01-241-0/+10
| | | | | | | | | | * parser.c: fix a memeory leak in internal subset parsing with a fix from Ashwin * test/errors/content1.xml result/errors/content1.xml*: add test to regressions Daniel svn path=/trunk/; revision=3680
* another nasty regexp case fixed. added to regression suite DanielDaniel Veillard2007-08-281-0/+14
| | | | | | | | | * xmlregexp.c: another nasty regexp case fixed. * test/regexp/ranges2 result/regexp/ranges2: added to regression suite Daniel svn path=/trunk/; revision=3658
* applied patch from Frank Gross fixing Schemas IDC import bug #455953 andDaniel Veillard2007-08-233-0/+62
| | | | | | | | | * xmlschemas.c test/schemas/*455953* result/schemas/bug455953*: applied patch from Frank Gross fixing Schemas IDC import bug #455953 and also add the test to the regression suite Daniel svn path=/trunk/; revision=3652
* fixed a parser bug where invalid char in comment may not be detected,Daniel Veillard2007-08-011-0/+6
| | | | | | | | | | * parser.c: fixed a parser bug where invalid char in comment may not be detected, reported by Ashwin Sinha * test/errors/comment1.xml result/errors/comment1.xml*: added the example to the regression suite Daniel svn path=/trunk/; revision=3647
* fixed the push mode when a big comment occurs before an internal subset,Daniel Veillard2007-06-121-0/+13
| | | | | | | | | | * parser.c: fixed the push mode when a big comment occurs before an internal subset, should close bug #438835 * test/comment6.xml result//comment6.xml*: added a special test in the regression suite Daniel svn path=/trunk/; revision=3635
* fix bug #414846 where invalid characters in attributes would sometimes notDaniel Veillard2007-06-121-0/+1
| | | | | | | | | | * parser.c: fix bug #414846 where invalid characters in attributes would sometimes not be detected. * test/errors/attr4.xml result/errors/attr4.xml*: added a specific test case to the regression tests Daniel svn path=/trunk/; revision=3634
* fixed problem with 0x2d in Char Range (bug #420596) added regression testWilliam M. Brack2007-03-211-0/+10
| | | | | | | | * 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
* fix xmlTextReaderSetup() description tests which were apparently neverDaniel Veillard2007-01-047-0/+18089
| | | | | | | | | | | | * xmlreader.c: fix xmlTextReaderSetup() description * test/relaxng/empty1.rng test/relaxng/comps_0.xml test/relaxng/empty1_0.xml test/relaxng/comps.rng test/relaxng/empty0.rng test/relaxng/empty0_0.xml test/relaxng/empty1_1.xml: tests which were apparently never commited to CVS Daniel svn path=/trunk/; revision=3572
* fixing HTML entities in attributes parsing bug #362552 added to theDaniel Veillard2006-10-171-0/+7
| | | | | | | * HTMLparser.c: fixing HTML entities in attributes parsing bug #362552 * result/HTML/entities2.html* test/HTML/entities2.html: added to the regression suite Daniel
* Adding test file, DanielDaniel Veillard2006-10-132-0/+47
|