1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 20:25:14 +03:00
Commit Graph

117 Commits

Author SHA1 Message Date
Daniel Veillard
a76fe5ca11 integrated the Out Of Memory test from Havoc Pennington #109368 a lot of
* Makefile.am testOOM.c testOOMlib.[ch] : integrated the Out Of
  Memory test from Havoc Pennington #109368
* SAX.c parser.c parserInternals.c tree.c uri.c valid.c
  xmlmemory.c xmlreader.c xmlregexp.c include/libxml/tree.h
  include/libxml/parser.h: a lot of memory allocation cleanups
  based on the results of the OOM testing
* check-relaxng-test-suite2.py: seems I forgot to commit the
  script.
Daniel
2003-04-24 16:06:47 +00:00
Daniel Veillard
85095e2c07 try to find more places where xmlCanonicPath() must be used to convert
* DOCBparser.c SAX.c catalog.c debugXML.c parser.c: try to find
  more places where xmlCanonicPath() must be used to convert
  filenames to URLs, trying to fix #111088
Daniel
2003-04-23 13:56:44 +00:00
Daniel Veillard
f431eb8144 applied the patch provided by Brent Hendricks fixing #105992 and
* SAX.c test/valid/ns* test/result/ns*: applied the patch
  provided by Brent Hendricks fixing #105992 and integrated the
  examples in the testsuite.
Daniel
2003-04-22 08:37:26 +00:00
Daniel Veillard
e502041f5b fixed an uninitialized memory access pointed by valgrind on C14Ntests
* SAX.c: fixed an uninitialized memory access pointed by valgrind
  on C14Ntests
Daniel
2003-04-01 09:55:20 +00:00
Daniel Veillard
e637c4ad2e more work on XML Schemas datatypes and facets support. Currently only
* relaxng.c xmlschemastypes.c: more work on XML Schemas datatypes
  and facets support. Currently only schemas with binHex or
  base64 don't compile. A few error left in the test suite:
  found 1035 test instances: 919 success 23 failures
  most are gdate or gdateyear failing check, and a few cases where
  James clark tests results are strange.
* valid.c: allow to reuse the Notation checking routine without
  having a validation context.
* SAX.c: removed a #if 0
Daniel
2003-03-30 21:10:09 +00:00
Daniel Veillard
ef8dd7be29 fixing bug #108976 get the ID/REFs to reference the ID in the document
* parser.c: fixing bug #108976 get the ID/REFs to reference
  the ID in the document content and not in the entity copy
* SAX.c include/libxml/parser.h: more checking of the ID/REF
  stuff, better solution for #107208
* xmlregexp.c: removed a direct printf, dohhh
* xmlreader.c: fixed a bug on streaming validation of empty
  elements in entities
* result/VC/ElementValid8 test/VCM/v20.xml result/valid/xhtml1.xhtml:
  cleanup of the validation tests
* test/valid/id* test/valid/dtds/destfoo.ent result/valid/id*:
  added more ID/IDREF tests to the suite
Daniel
2003-03-23 12:02:56 +00:00
Daniel Veillard
9ff2d4785c fix bug #107208 avoid false duplicates when ID/REFs are defined in
* SAX.c: fix bug #107208 avoid false duplicates when ID/REFs are
  defined in entities content
Daniel
2003-03-22 15:18:01 +00:00
Daniel Veillard
99737f5053 Fixed validation bug #108858 on namespace names using entities and
* SAX.c: Fixed validation bug #108858 on namespace names using
  entities and reported by Brent Hendricks
* xmllint.c: report xmlTextReaderHasValue() result in --stream
  --debug output.
Daniel
2003-03-22 14:55:50 +00:00
Daniel Veillard
39eb88b4ca fix some recursion problems introduced in the last release. more debugging
* SAX.c parser.c: fix some recursion problems introduced in the
  last release.
* relaxng.c: more debugging of the RNG validation engine, still
  problems though.
Daniel
2003-03-11 11:21:28 +00:00
Daniel Veillard
fcc822e2db fixed bug #105992 Daniel
* SAX.c: fixed bug #105992
Daniel
2003-02-24 17:52:08 +00:00
Igor Zlatkovic
18fb27808d ensured xmlDoc.URL is always canonic 2003-02-19 14:49:48 +00:00
Daniel Veillard
de590ca180 added the redefinition of namespaced attribute check that was missing as
* SAX.c: added the redefinition of namespaced attribute
  check that was missing as Fabrice Desr pointed out.
Daniel
2003-02-05 10:45:26 +00:00
Daniel Veillard
e2830f1e65 preparing 2.5.1 release fixing XmlTextReader bug Daniel
* configure.in doc/* NEWS: preparing 2.5.1 release
* SAX.c parser.c: fixing XmlTextReader bug
Daniel
2003-01-08 17:47:49 +00:00
Daniel Veillard
8bf70b956a fuck, I introduced a memory leak on external parsed entities in 2.5.0 :-(
* SAX.c: fuck, I introduced a memory leak on external parsed
  entities in 2.5.0 :-(
Daniel
2003-01-07 23:14:24 +00:00
Daniel Veillard
7b4b2f9d8f preparing 2.5.0 release only warn in pedantic mode about namespace name
* configure.in NEWS: preparing 2.5.0 release
* SAX.c: only warn in pedantic mode about namespace name
  brokeness
* globals.c: fix a doc generation problem
* uri.c: fix #101520
* doc/*: updated and rebuilt the doc for the release, includuding
  stylesheet update
* python/Makefile.am: fix a filename bug
Daniel
2003-01-06 13:11:20 +00:00
Daniel Veillard
ecaba49a72 warn on xmlns:prefix="foo" fixed a couple of problem for namespace
* SAX.c: warn on xmlns:prefix="foo"
* xmlreader.c python/tests/reader.py: fixed a couple of problem
  for namespace attributes handling.
Daniel
2002-12-30 10:55:29 +00:00
Daniel Veillard
8dbd495eca fixing bug #95296, when the predefined entities are redefined in the DTD
* SAX.c: fixing bug #95296, when the predefined entities
  are redefined in the DTD the default one must be used
  instead anyway.
Daniel
2002-12-27 11:34:48 +00:00
Daniel Veillard
a9b66d00b5 new API building Python script, does the C parsing directly, generates a
* doc/apibuild.py doc/libxml2-api.xml doc/Makefile.am: new API
  building Python script, does the C parsing directly, generates
  a better API description including structure fieds defs and
  enums. Still a couple of bugs, but good enough for the python
  wrappers now.
* DOCBparser.c SAX.c nanohttp.c parser.c parserInternals.c tree.c
  valid.c xmlIO.c xmlmemory.c xmlreader.c xmlregexp.c xmlschemas.c
  include/libxml/schemasInternals.h include/libxml/tree.h: more
  cleanup based on the python analysis script reports.
* libxml.spec.in: make sure the API XML description is part of the
  devel package.
Daniel
2002-12-11 14:23:49 +00:00
Daniel Veillard
90d68fbb35 fixed bug #92518 validation error were not covering namespace
* SAX.c valid.c include/libxml/valid.h: fixed bug #92518 validation
  error were not covering namespace declarations.
* result/valid/dia.xml test/valid/dia.xml: the test wasn't valid,
  it was missing the attribute declaration for the namespace
* result/VC/NS3: the fix now report breakages in that test
Daniel
2002-09-26 16:10:21 +00:00
Daniel Veillard
46de64e9c0 performance patch from Peter Jacobi Daniel
* SAX.c parser.c tree.c include/libxml/tree.h: performance patch from
  Peter Jacobi
Daniel
2002-05-29 08:21:33 +00:00
Daniel Veillard
6f4561a49c Never commit without running "make tests" :-( fix a couple of stupidities
* valid.c SAX.c: Never commit without running "make tests" :-(
  fix a couple of stupidities in the previous commit
* result/*: a few changes in some attribute order result of previous
  commit.
Daniel
2002-03-25 12:10:14 +00:00
Daniel Veillard
d85f4f437c fixed bug #76168, attribute redeclared in the internal subset should not
* valid.c SAX.c: fixed bug #76168, attribute redeclared in
  the internal subset should not raise duplicate ID errors,
  also there was a small bug in conjunction to namespace
  declarations defaulted and xml:xxx attributes DTD definitions.
Daniel
2002-03-25 10:48:46 +00:00
Daniel Veillard
34ce8bece2 preparing 2.4.18 updated and rebuilt the web site implement the new
* configure.in: preparing 2.4.18
* doc/*: updated and rebuilt the web site
* *.c libxml.h: implement the new IN_LIBXML scheme discussed with
  the Windows and Cygwin maintainers.
* parser.c: humm, changed the way the SAX parser work when
  xmlSubstituteEntitiesDefault(1) is set, it will then
  do the entity registration and loading by itself in case the
  user provided SAX getEntity() returns NULL.
* testSAX.c: added --noent to test the behaviour.
Daniel
2002-03-18 19:37:11 +00:00
Daniel Veillard
9ff8817e67 Fixing #74186, made sure all boolean expressions get fully parenthesized,
* c14n.c: Fixing #74186, made sure all boolean expressions
  get fully parenthesized, ran indent on the output
* configure.in HTMLtree.c SAX.c c14n.c debugXML.c tree.c xpointer.c
  include/libxml/tree.h: also #74186 related, removed the
  --with-buffers option, and all the preprocessor conditional
  sections that were resulting from it.
Daniel
2002-03-11 09:15:32 +00:00
Daniel Veillard
c0fef77455 Fixed #72346, about handling of xmlns:foo="", this could actually change
* SAX.c: Fixed #72346, about handling of xmlns:foo="", this could
  actually change in a future XML Namespace revision.
Daniel
2002-03-01 16:16:31 +00:00
Daniel Veillard
8aff24724e oops broke automatic defaulting of namespaces attributes. Daniel
* SAX.c: oops broke automatic defaulting of namespaces attributes.
Daniel
2002-02-19 21:50:43 +00:00
Daniel Veillard
8dc16a642a had to change 2 internal parsing API when processing document content to
* include/libxml/parserInternals.h parser.c: had to change
  2 internal parsing API when processing document content
  to check the start and end of element content are defined
  in the same entity
* valid.c include/libxml/valid.h: attribute normalization can
  generate a validity error added xmlValidCtxtNormalizeAttributeValue()
  with the context to report it.
* SAX.c: fixed the last known bugs, crazy validation constraints
  when a document is standalone seems correctly handled. There
  is a couple of open issues left which need consideration especially
  PE93 on external unparsed entities and standalone status.
  Ran 1819 tests: 1817 suceeded, 2 failed and 0 generated an error in 8.26 s.
  The 2 tests left failing are actually in error. Cleanup done.
Daniel
2002-02-19 21:08:48 +00:00
Daniel Veillard
878eab04c0 more validation test fixups added duration info for the tests Daniel
* SAX.c parser.c valid.c: more validation test fixups
* check-xml-test-suite.py: added duration info for the tests
Daniel
2002-02-19 13:46:09 +00:00
Daniel Veillard
8ab0f58f7d more work on the conformance suite. Took the step to finally block
* SAX.c parserInternals.c valid.c: more work on the conformance
  suite. Took the step to finally block documents with encoding
  errors. It's a fatal error per the spec, people should have fixed
  their documents by now.
Daniel
2002-02-18 18:31:38 +00:00
Daniel Veillard
2875770e53 fixed a couple of conformances issues deep into the validation code
* SAX.c entities.c: fixed a couple of conformances issues deep
  into the validation code (standalone and undeclared Notations)
Daniel
2002-02-18 11:19:30 +00:00
Daniel Veillard
7aea52d03e fixed #71740 NotationDecl with a required field missing Daniel
* valid.c SAX.c: fixed #71740 NotationDecl with a required field
  missing
Daniel
2002-02-17 23:07:47 +00:00
Daniel Veillard
c7612996ad improved the behaviour a bit as well as the logs fixed a few more bugs
* check-xml-test-suite.py: improved the behaviour a bit as
  well as the logs
* parser.c valid.c SAX.c: fixed a few more bugs
  "Ran 1819 tests: 1778 suceeded, 41 failed, and 0 generated an error"
Daniel
2002-02-17 22:47:37 +00:00
Daniel Veillard
bb7ddb3429 python script to run regression tests against the XML Test suite of
* check-xml-test-suite.py: python script to run regression tests
  against the XML Test suite of W3C/OASis
* SAX.c: fixed a validation bug
* parser.c: fixed 3 errors pointed by the test suite
* doc/buildDocBookCatalog: fixed a typo pointed by drake
* python/Makefile.am: fixed a dependendy
Daniel
2002-02-17 21:26:33 +00:00
Daniel Veillard
9d06d300a5 Build a new version hopefully near complete and fully documented of the
* doc/libxml2-api.xml doc/parsedecl.py: Build a new version
  hopefully near complete and fully documented of the API in XML
* HTMLtree.c SAX.c debugXML.c error.c globals.c parser.c tree.c
 xmlIO.c xmlmemory.c include/libxml/catalog.h include/libxml/hash.h
 include/libxml/list.h include/libxml/parser.h include/libxml/tree.h
 include/libxml/parserInternals.h include/libxml/valid.hi
 include/libxml/xmlIO.h include/libxml/xmlerror.hi
 include/libxml/xmlmemory.h include/libxml/xmlversion.h.ini
 include/libxml/xpath.h include/libxml/xpathInternals.h:
  Cleaned up the doc comments a lot in the process, the interface
  coverage is now 100%
Daniel
2002-01-22 18:15:52 +00:00
Daniel Veillard
963d2ae415 cleanup patch from Anthony Jones fix the headers to avoid in make scan
* SAX.c: cleanup patch from Anthony Jones
* doc/Makefile.am: fix the headers to avoid in make scan
* parserInternals.c xpath.c include/libxml/*.h: cleanup of the
  includes, * vs Ptr and general cleanup
* parsedecl.py: first version of a script to extract the
  module interfaces, the goal will be to provide .decl or XML
  specification of the interfaces to build wrappers.
Daniel
2002-01-20 22:08:18 +00:00
Daniel Veillard
cbaf399537 applied 42 documentation patches from Charlie Bozeman. Regenerated the
* *.c include/libxml/*.h doc/html/*: applied 42 documentation
  patches from Charlie Bozeman. Regenerated the HTML docs.
Daniel
2001-12-31 16:16:02 +00:00
Daniel Veillard
3c01b1d81b - include/libxml/globals.h include/libxml/threads.h threads.c
testThreads.c: far more testing, cleaning up bugs
- *.c : make sure globals.h is always included.
Daniel
2001-10-17 15:58:35 +00:00
Daniel Veillard
d046356030 Applied the last patches from Gary, cleanup, activated threading all user
* include/libxml/SAX.h include/libxml/globals.h include/libxml/parser.h
  include/libxml/parserInternals.h include/libxml/tree.h
  include/libxml/xmlerror.h HTMLparser.c SAX.c error.c globals.c
  nanoftp.c nanohttp.c parser.c parserInternals.c testDocbook.c
  testHTML.c testSAX.c tree.c uri.c xlink.c xmlmemory.c:
  Applied the last patches from Gary, cleanup, activated threading
  all user accessible global variables are now handled in globals.[ch]
  Still a bit rought but make tests passes with either
  --with-threads defined at configure time or not.
* Makefile.am example/Makefile.am: added globals.[ch] and threads
  linking options
Daniel
2001-10-13 09:15:48 +00:00
Daniel Veillard
60087f30f3 preparing 2.4.6 release updated and rebuilt the docs fixed a number of
* configure.in: preparing 2.4.6 release
* doc/xml.html doc/html/*: updated and rebuilt the docs
* include/libxml/*.h *.c: fixed a number of teh/the widht/width typos
Daniel
2001-10-10 09:45:09 +00:00
Daniel Veillard
651f947163 ouch a non-defined namespace could lead to a crash, fixed #61215 Daniel
* SAX.c: ouch a non-defined namespace could lead to a crash, fixed #61215
Daniel
2001-10-04 14:51:06 +00:00
Daniel Veillard
bce623325c fixed a bug in the HTML parser introduced Sep 9 Daniel
* SAX.c: fixed a bug in the HTML parser introduced Sep  9
Daniel
2001-09-10 18:46:55 +00:00
Daniel Veillard
143b04fb73 fixing bug #59946 on xmlns="" Daniel
* SAX.c: fixing bug #59946 on xmlns=""
Daniel
2001-09-10 18:14:14 +00:00
Daniel Veillard
7a51d6df13 fixing bug 59732, simple but allocates a new error code. Daniel
* include/libxml/xmlerror.h SAX.c: fixing bug 59732, simple
  but allocates a new error code.
Daniel
2001-09-10 14:40:43 +00:00
Daniel Veillard
05c13a20b9 John Fleck fixed typos in the options output fix ignorable white space SAX
* xmllint.c: John Fleck fixed typos in the options output
* parser.c SAX.c: fix ignorable white space SAX selection
* entities.c: Steve Underwood found the possibility of an
  ininite loop in case of error.
Daniel
2001-09-09 08:38:09 +00:00
Daniel Veillard
5015b71417 removed a couple of unused variable (Albert Chin) Daniel
* SAX.c: removed a couple of unused variable (Albert Chin)
Daniel
2001-08-17 09:37:52 +00:00
Daniel Veillard
f300b7e701 small fix fixing bug #58539 reported by coolo, in entity substitution mode
* SAX.c: small fix fixing bug #58539 reported by coolo, in
  entity substitution mode text at the end of the entity might
  be added due to text coalescing.
* nanoftp.c parser.c: small cleanup
Daniel
2001-08-13 10:43:15 +00:00
Daniel Veillard
48da910097 allow to inherit attributes from the DTD directly in the tree, this is
* SAX.c testXPath.c valid.c xmllint.c include/libxml/valid.h:
  allow to inherit attributes from the DTD directly in the
  tree, this is needed for XPath and can be a useful feature.
  Inherited namespaces are always provided at the tree level now
* test/defattr* result/defattr* result/noent/defattr*: added a couple
  of tests for this feature (XSLT being the prime user).
Daniel
2001-08-07 01:10:10 +00:00
Daniel Veillard
9f4eb91159 unparsedEntityDecl() the URI computation of the entity wasn't done
* SAX.c: unparsedEntityDecl() the URI computation of the
  entity wasn't done breaking XSLT unparsed-entity-uri()
Daniel
2001-08-01 21:22:27 +00:00
Daniel Veillard
d9bad13bb2 removing history/readline changed this slightly make element content line
* result/scripts/base*: removing history/readline changed
  this slightly
* include/libxml/parser.h SAX.c parser.c parserInternals.c
  xmllint.c: make element content line number generation
  optionnal to avoid breaking old apps added interface to switch
Daniel
2001-07-23 19:39:43 +00:00
Daniel Veillard
8fcc494e64 cleaned up some warning on the Alpha Daniel
* SAX.c xmlIO.c: cleaned up some warning on the Alpha
Daniel
2001-07-17 20:07:33 +00:00