baserock-morphs:libxml2.git
8 years agopreparing 0.7.3 release fix a typo in a name Daniel LIBXML2.7.3
Daniel Veillard [Sun, 18 Jan 2009 21:43:30 +0000 (21:43 +0000)]
preparing 0.7.3 release fix a typo in a name Daniel

* configure.in doc/xml.html doc/*: preparing 0.7.3 release
* include/libxml/parserInternals.h SAX2.c: fix a typo in a name
Daniel

svn path=/trunk/; revision=3814

8 years agoport patch from Marcus Meissner to add gcc checking for printf like
Daniel Veillard [Sun, 18 Jan 2009 20:53:59 +0000 (20:53 +0000)]
port patch from Marcus Meissner to add gcc checking for printf like

* include/libxml/parser.h include/libxml/xmlwriter.h
  include/libxml/relaxng.h include/libxml/xmlversion.h.in
  include/libxml/xmlwin32version.h.in include/libxml/valid.h
  include/libxml/xmlschemas.h include/libxml/xmlerror.h:
  port patch from Marcus Meissner to add gcc checking for
  printf like functions parameters, should fix #65068
* doc/apibuild.py doc/*: modified the script accordingly
  and regenerated
* xpath.c xmlmemory.c threads.c: fix a few warnings
Daniel

svn path=/trunk/; revision=3813

8 years agowindows header should get the same define Daniel
Daniel Veillard [Sun, 18 Jan 2009 19:41:26 +0000 (19:41 +0000)]
windows header should get the same define Daniel

* include/libxml/xmlwin32version.h.in: windows header should
  get the same define
Daniel

svn path=/trunk/; revision=3812

8 years agoapply patch from Marcus Meissner to add gcc attribute alloc_size should
Daniel Veillard [Sun, 18 Jan 2009 17:26:02 +0000 (17:26 +0000)]
apply patch from Marcus Meissner to add gcc attribute alloc_size should

* include/libxml/xmlversion.h.in include/libxml/xmlmemory.h:
  apply patch from Marcus Meissner to add gcc attribute alloc_size
  should fix #552505
* doc/apibuild.py doc/* testapi.c: regenerate the API
* include/libxml/parserInternals.h: fix a comment problem raised
  by apibuild.py
daniel

svn path=/trunk/; revision=3811

8 years agoalso remove pthread key when stopping thread support, patch based on Alex
Daniel Veillard [Sun, 18 Jan 2009 15:41:30 +0000 (15:41 +0000)]
also remove pthread key when stopping thread support, patch based on Alex

* threads.c: also remove pthread key when stopping thread
  support, patch based on Alex Ott one should fix #564723
daniel

svn path=/trunk/; revision=3810

8 years agopatch from Daniel Zimmermann fixing a memory leak in an edge case, solves
Daniel Veillard [Sun, 18 Jan 2009 14:57:04 +0000 (14:57 +0000)]
patch from Daniel Zimmermann fixing a memory leak in an edge case, solves

* threads.c: patch from Daniel Zimmermann fixing a memory leak
  in an edge case, solves #562230
Daniel

svn path=/trunk/; revision=3809

8 years agoadd a new define XML_MAX_TEXT_LENGHT limiting the maximum size of a single
Daniel Veillard [Sun, 18 Jan 2009 14:08:36 +0000 (14:08 +0000)]
add a new define XML_MAX_TEXT_LENGHT limiting the maximum size of a single

* include/libxml/parserInternals.h SAX2.c: add a new define
  XML_MAX_TEXT_LENGHT limiting the maximum size of a single text
  node, the defaultis 10MB and can be removed with the HUGE
  parsing option
Daniel

svn path=/trunk/; revision=3808

8 years agoadd XML_PARSE_OLDSAX parser option to enable pre 2.7 SAX behavior.
Rob Richards [Mon, 5 Jan 2009 17:28:50 +0000 (17:28 +0000)]
add XML_PARSE_OLDSAX parser option to enable pre 2.7 SAX behavior.

* include/libxml/parser.h parser.c: add XML_PARSE_OLDSAX parser
  option to enable pre 2.7 SAX behavior.

svn path=/trunk/; revision=3807

8 years agoset doc on last child tree in xmlAddChildList for bug #546772. Fix problem
Rob Richards [Wed, 31 Dec 2008 22:13:57 +0000 (22:13 +0000)]
set doc on last child tree in xmlAddChildList for bug #546772. Fix problem

* tree.c: set doc on last child tree in xmlAddChildList for
  bug #546772. Fix problem adding an attribute via with xmlAddChild
  reported by Kris Breuker.

svn path=/trunk/; revision=3806

8 years agoxmlwriter.c: fix indenting in xmlTextWriterFullEndElement for bug# 554353.
Rob Richards [Sat, 27 Dec 2008 13:17:43 +0000 (13:17 +0000)]
xmlwriter.c: fix indenting in xmlTextWriterFullEndElement for bug# 554353.

svn path=/trunk/; revision=3805

8 years agoadds element traversal support avoid a warning regenerated daniel
Daniel Veillard [Thu, 27 Nov 2008 15:26:28 +0000 (15:26 +0000)]
adds element traversal support avoid a warning regenerated daniel

* include/libxml/tree.h tree.c python/generator.py: adds
  element traversal support
* valid.c: avoid a warning
* doc/*: regenerated
daniel

svn path=/trunk/; revision=3804

9 years agofix for CVE-2008-4226, a memory overflow when building gigantic text
Daniel Veillard [Mon, 17 Nov 2008 15:59:21 +0000 (15:59 +0000)]
fix for CVE-2008-4226, a memory overflow when building gigantic text

* SAX2.c parser.c: fix for CVE-2008-4226, a memory overflow
  when building gigantic text nodes, and a bit of cleanup
  to better handled out of memory problem in that code.
* tree.c: fix for CVE-2008-4225, lack of testing leads to
  a busy loop test assuming one have enough core memory.
Daniel

svn path=/trunk/; revision=3803

9 years agoMatthias Kaehlcke reported a build problem when not compiling HTML support
Daniel Veillard [Thu, 6 Nov 2008 13:47:39 +0000 (13:47 +0000)]
Matthias Kaehlcke reported a build problem when not compiling HTML support

* xmllint.c: Matthias Kaehlcke reported a build problem when
  not compiling HTML support in.
daniel

svn path=/trunk/; revision=3802

9 years agopatch from Adrian Bunk which adds --disable-rebuild-docs to avoid
Daniel Veillard [Fri, 17 Oct 2008 13:26:44 +0000 (13:26 +0000)]
patch from Adrian Bunk which adds --disable-rebuild-docs to avoid

* configure.in doc/Makefile.am: patch from Adrian Bunk which
  adds --disable-rebuild-docs to avoid rebuilding them
daniel

svn path=/trunk/; revision=3801

9 years agopreparing the release of 2.7.2 fix the Solaris portability issue LIBXML2.7.2
Daniel Veillard [Fri, 3 Oct 2008 07:58:23 +0000 (07:58 +0000)]
preparing the release of 2.7.2 fix the Solaris portability issue

* 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

9 years agofix a nasty bug introduced when cleaning up entities processing in 2.7.x ,
Daniel Veillard [Thu, 2 Oct 2008 20:55:10 +0000 (20:55 +0000)]
fix a nasty bug introduced when cleaning up entities processing in 2.7.x ,

* parser.c: fix a nasty bug introduced when cleaning up
  entities processing in 2.7.x , fixes #554660
Daniel

svn path=/trunk/; revision=3798

9 years agofix an HTML parsing error on large data sections reported by Mike Day add
Daniel Veillard [Thu, 25 Sep 2008 16:06:18 +0000 (16:06 +0000)]
fix an HTML parsing error on large data sections reported by Mike Day add

* 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

9 years agofix compilation if XPath is not included Daniel
Daniel Veillard [Thu, 25 Sep 2008 15:36:43 +0000 (15:36 +0000)]
fix compilation if XPath is not included Daniel

* runxmlconf.c: fix compilation if XPath is not included
Daniel

svn path=/trunk/; revision=3796

9 years agopatch from Riccardo Scussat fixing custom error handlers problems. daniel
Daniel Veillard [Thu, 25 Sep 2008 14:55:21 +0000 (14:55 +0000)]
patch from Riccardo Scussat fixing custom error handlers problems. daniel

* xmlreader.c: patch from Riccardo Scussat fixing custom error
  handlers problems.
daniel

svn path=/trunk/; revision=3795

9 years agonew options to serialize as XML/HTML/XHTML and restore old entry point
Daniel Veillard [Thu, 25 Sep 2008 14:31:40 +0000 (14:31 +0000)]
new options to serialize as XML/HTML/XHTML and restore old entry point

* include/libxml/xmlsave.h xmlsave.c: new options to serialize
  as XML/HTML/XHTML and restore old entry point behaviours
Daniel

svn path=/trunk/; revision=3794

9 years agoprepare release of 2.7.1 daniel LIBXML2.7.1
Daniel Veillard [Mon, 1 Sep 2008 14:50:19 +0000 (14:50 +0000)]
prepare release of 2.7.1 daniel

* doc/xml.html doc/news.html configure.in python/setup.py NEWS:
  prepare release of 2.7.1
daniel

svn path=/trunk/; revision=3792

9 years agoapplied a couple of patches from Martin avoiding some leaks, fixinq QName
Daniel Veillard [Mon, 1 Sep 2008 13:38:22 +0000 (13:38 +0000)]
applied a couple of patches from Martin avoiding some leaks, fixinq QName

* schematron.c xpath.c: applied a couple of patches from Martin
  avoiding some leaks, fixinq QName checks in XPath, XPath debugging
  and schematron code cleanups.
* python/tests/Makefile.am python/tests/xpathleak.py: add the
  specific regression tests, just tweak it to avoid output by default
Daniel

svn path=/trunk/; revision=3791

9 years agoBorland C fix from Moritz Both regenerate, workaround a problem for buffer
Daniel Veillard [Mon, 1 Sep 2008 13:08:57 +0000 (13:08 +0000)]
Borland C fix from Moritz Both regenerate, workaround a problem for buffer

* trionan.c: Borland C fix from Moritz Both
* testapi.c: regenerate, workaround a problem for buffer testing
* xmlIO.c HTMLtree.c: new internal entry point to hide even better
  xmlAllocOutputBufferInternal
* tree.c: harden the code around buffer allocation schemes
* parser.c: restore the warning when namespace names are not absolute
  URIs
* runxmlconf.c: continue regression tests if we get the expected
  number of errors
* Makefile.am: run the python tests on make check
* xmlsave.c: handle the HTML documents and trees
* python/libxml.c: convert python serialization to the xmlSave APIs
  and avoid some horrible hacks
Daniel

svn path=/trunk/; revision=3790

9 years agopreparing 2.7.0 release remove some testing traces remove some warnings LIBXML2.7.0
Daniel Veillard [Sat, 30 Aug 2008 15:01:04 +0000 (15:01 +0000)]
preparing 2.7.0 release remove some testing traces remove some warnings

* configure.in, doc/*: preparing 2.7.0 release
* tree.c: remove some testing traces
* parser.c xmlIO.c xmlschemas.c: remove some warnings
Daniel

svn path=/trunk/; revision=3788

9 years agomake a new kind of buffer where shrinking and adding in head can avoid
Daniel Veillard [Sat, 30 Aug 2008 12:52:26 +0000 (12:52 +0000)]
make a new kind of buffer where shrinking and adding in head can avoid

* include/libxml/tree.h tree.c: make a new kind of buffer where
  shrinking and adding in head can avoid reallocation or full
  buffer memmoves
* encoding.c xmlIO.c: use the new kind of buffers for output
  buffers
Daniel

svn path=/trunk/; revision=3787

9 years agoregenerated Daniel
Daniel Veillard [Sat, 30 Aug 2008 08:19:02 +0000 (08:19 +0000)]
regenerated Daniel

* doc/* testapi.c: regenerated
Daniel

svn path=/trunk/; revision=3786

9 years agopatch from Robert Schwebel , allows to compile the example if configured
Daniel Veillard [Fri, 29 Aug 2008 19:58:23 +0000 (19:58 +0000)]
patch from Robert Schwebel , allows to compile the example if configured

* doc/examples/reader3.c: patch from  Robert Schwebel , allows to
  compile the example if configured without output support fixes
  #545582
* Makefile.am: add testrecurse to the make check tests
* HTMLparser.c: if the parser got a encoding argument it should be
  used over what the meta specifies, patch fixing #536346
Daniel

svn path=/trunk/; revision=3785

9 years agoa couple more fixes patch from Andreas Färber to compile on Haiku
Daniel Veillard [Fri, 29 Aug 2008 12:43:40 +0000 (12:43 +0000)]
a couple more fixes patch from Andreas Färber to compile on Haiku

* parser.c: a couple more fixes
* nanohttp.c nanoftp.c: patch from Andreas Färber  to compile on Haiku
* doc/examples/*: regenerated
daniel

svn path=/trunk/; revision=3784

9 years agocompletely different fix for the recursion detection based on entity
Daniel Veillard [Thu, 28 Aug 2008 15:36:32 +0000 (15:36 +0000)]
completely different fix for the recursion detection based on entity

* 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

9 years agoa bit of cleanup and added checks based on the regression tests of the
Daniel Veillard [Wed, 27 Aug 2008 19:57:06 +0000 (19:57 +0000)]
a bit of cleanup and added checks based on the regression tests of the

* include/libxml/xmlerror.h parser.c: a bit of cleanup and
  added checks based on the regression tests of the xmlconf suite
Daniel

svn path=/trunk/; revision=3782

9 years agobug in parsing RFC 3986 uris with port numbers Daniel
Daniel Veillard [Wed, 27 Aug 2008 17:23:41 +0000 (17:23 +0000)]
bug in parsing RFC 3986 uris with port numbers Daniel

* uri.c: bug in parsing RFC 3986 uris with port numbers
Daniel

svn path=/trunk/; revision=3781

9 years agoadd an --with-coverage configure option and a 'make cov' target based on
Daniel Veillard [Wed, 27 Aug 2008 15:33:28 +0000 (15:33 +0000)]
add an --with-coverage configure option and a 'make cov' target based on

* configure.in Makefile.am: add an --with-coverage configure option
  and a 'make cov' target based on gcc profiling and the lcov
  tool. Currently at 68.9% coverage out of 'make check' and
  runsuite executions.
* xmlreader.c: remove warnings due to C++ comments
Daniel

svn path=/trunk/; revision=3780

9 years agocleanup entity pushing error handling based on a patch from Ashwin daniel
Daniel Veillard [Wed, 27 Aug 2008 13:02:01 +0000 (13:02 +0000)]
cleanup entity pushing error handling based on a patch from Ashwin daniel

* include/libxml/parserInternals.h parser.c: cleanup entity
  pushing error handling based on a patch from Ashwin
daniel

svn path=/trunk/; revision=3779

9 years agofix a small initialization problem raised by Ashwin increase testing
Daniel Veillard [Wed, 27 Aug 2008 11:45:41 +0000 (11:45 +0000)]
fix a small initialization problem raised by Ashwin increase testing

* threads.c: fix a small initialization problem raised by Ashwin
* testapi.c gentest.py: increase testing especially for document
  with an internal subset, and entities
* tree.c: fix a deallocation issue when unlinking entities from
  a document.
* valid.c: fix a missing entry point test not found previously.
* doc/*: regenerated the APIs, docs etc.
daniel

svn path=/trunk/; revision=3778

9 years agostrengthen some of the internal parser limits, add an XML_PARSE_HUGE
Daniel Veillard [Tue, 26 Aug 2008 13:05:34 +0000 (13:05 +0000)]
strengthen some of the internal parser limits, add an XML_PARSE_HUGE

* include/libxml/parser.h parser.c xmllint.c: strengthen some
  of the internal parser limits, add an XML_PARSE_HUGE option
  to bypass them all. More internal parser limits will still need
  to be added.
Daniel

svn path=/trunk/; revision=3777

9 years agoadd the testchar to 'make check' Volker Grabsch pointed out a typo
Daniel Veillard [Tue, 26 Aug 2008 07:46:42 +0000 (07:46 +0000)]
add the testchar to 'make check' Volker Grabsch pointed out a typo

* 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

9 years agopatch based on Wieant Nielander contribution to add the option of not
Daniel Veillard [Tue, 26 Aug 2008 07:26:55 +0000 (07:26 +0000)]
patch based on Wieant Nielander contribution to add the option of not

* include/libxml/parser.h xinclude.c xmllint.c: patch based on
  Wieant Nielander contribution to add the option of not doing
  URI base fixup in XInclude
Daniel

svn path=/trunk/; revision=3775

9 years agoapplied patch from Aswin to fix tree skipping fixed a comment and added a
Daniel Veillard [Mon, 25 Aug 2008 14:53:31 +0000 (14:53 +0000)]
applied patch from Aswin to fix tree skipping fixed a comment and added a

* xmlreader.c: applied patch from Aswin to fix tree skipping
* include/libxml/entities.h entities.c: fixed a comment and
  added a new xmlNewEntity() entry point
* runtest.c: be less verbose
* tree.c: space and tabs cleanups
daniel

svn path=/trunk/; revision=3774

9 years agorework the patch to avoid some ABI issue with people allocating entities
Daniel Veillard [Mon, 25 Aug 2008 08:57:48 +0000 (08:57 +0000)]
rework the patch to avoid some ABI issue with people allocating entities

* include/libxml/entities.h entities.c SAX2.c parser.c: rework
  the patch to avoid some ABI issue with people allocating
  entities structure directly
Daniel

svn path=/trunk/; revision=3773

9 years agofix for CVE-2008-3281 Daniel
Daniel Veillard [Wed, 20 Aug 2008 17:04:30 +0000 (17:04 +0000)]
fix for CVE-2008-3281 Daniel

* include/libxml/parser.h include/libxml/entities.h entities.c
  parserInternals.c parser.c: fix for CVE-2008-3281
Daniel

svn path=/trunk/; revision=3772

9 years agofix non GNUC builds.
Rob Richards [Sun, 10 Aug 2008 17:07:33 +0000 (17:07 +0000)]
fix non GNUC builds.

* dict.c: fix non GNUC builds.

svn path=/trunk/; revision=3771

9 years agoadding a check-valgrind target Daniel
Daniel Veillard [Fri, 8 Aug 2008 12:14:37 +0000 (12:14 +0000)]
adding a check-valgrind target Daniel

* makefile.am: adding a check-valgrind target
Daniel

svn path=/trunk/; revision=3770

9 years agoadd the new test in 'make check' and update it to check subdictionaries
Daniel Veillard [Fri, 8 Aug 2008 12:03:22 +0000 (12:03 +0000)]
add the new test in 'make check' and update it to check subdictionaries

* Makefile.am testdict.c: add the new test in 'make check' and
  update it to check subdictionaries processing.
Daniel

svn path=/trunk/; revision=3769

9 years agoadded a program to regression test the dictionary code improve the lookup
Daniel Veillard [Fri, 8 Aug 2008 10:09:19 +0000 (10:09 +0000)]
added a program to regression test the dictionary code improve the lookup

* testdict.c: added a program to regression test the dictionary code
* dict.c: improve the lookup efficiency by caching the key.
Daniel

svn path=/trunk/; revision=3768

9 years agochased and found a couple of nasty issues Daniel
Daniel Veillard [Thu, 7 Aug 2008 16:33:49 +0000 (16:33 +0000)]
chased and found a couple of nasty issues Daniel

* dict.c: chased and found a couple of nasty issues
Daniel

svn path=/trunk/; revision=3767

9 years agoBug 546629 – runtests doesn't pass on my mac Reviewed by William M.
CEST 2008 Sven Herzberg [Thu, 7 Aug 2008 13:52:30 +0000 (13:52 +0000)]
Bug 546629 – runtests doesn't pass on my mac Reviewed by William M.

Thu Aug  7 15:51:31 CEST 2008 Sven Herzberg <sven@imendio.com>

Bug 546629 – runtests doesn't pass on my mac
Reviewed by William M. Brack.

* runtest.c: use libpthread on Mac OS X as well

svn path=/trunk/; revision=3766

9 years agoallow [ and ] in fragment identifiers, 3986 disallow them but it's widely
Daniel Veillard [Wed, 6 Aug 2008 10:26:06 +0000 (10:26 +0000)]
allow [ and ] in fragment identifiers, 3986 disallow them but it's widely

* uri.c: allow [ and ] in fragment identifiers, 3986 disallow them
  but it's widely used for XPointer, and would break DocBook
  processing among others
Daniel

svn path=/trunk/; revision=3765

9 years agochange the big key algorithm to work properly with QName too, fix a bug
Daniel Veillard [Wed, 6 Aug 2008 09:35:25 +0000 (09:35 +0000)]
change the big key algorithm to work properly with QName too, fix a bug

* dict.c: change the big key algorithm to work properly with QName
  too, fix a bug with dict size and sub dictionaries
Daniel

svn path=/trunk/; revision=3764

9 years agorewrite the URI parser to update to rfc3986 (from 2396) removed the error
Daniel Veillard [Mon, 4 Aug 2008 15:29:44 +0000 (15:29 +0000)]
rewrite the URI parser to update to rfc3986 (from 2396) removed the error

* 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

9 years agomore progresses against the official regression tests small cleanup for
Daniel Veillard [Thu, 31 Jul 2008 19:54:59 +0000 (19:54 +0000)]
more progresses against the official regression tests small cleanup for

* runxmlconf.c: more progresses against the official regression tests
* runsuite.c: small cleanup for non-leak reports
* include/libxml/tree.h: parsing flags and other properties are
  now added to the document node, this is generally useful and
  allow to make Name and NmToken validations based on the parser
  flags, more specifically the 5th edition of XML or not
* HTMLparser.c tree.c: small side effects for the previous changes
* parser.c SAX2.c valid.c: the bulk of teh changes are here,
  the parser and validation behaviour can be affected, parsing
  flags need to be copied, lot of changes. Also fixing various
  validation problems in the regression tests.
Daniel

svn path=/trunk/; revision=3762

9 years agoadded a skipped list, insert rmt-ns10-035 improve 'make check' clean up
Daniel Veillard [Thu, 31 Jul 2008 08:20:02 +0000 (08:20 +0000)]
added a skipped list, insert rmt-ns10-035 improve 'make check' clean up

* runxmlconf.c: added a skipped list, insert rmt-ns10-035
* Makefile.am: improve 'make check'
* include/libxml/xmlerror.h parser.c: clean up namespace errors
  checking and reporting, errors when a document is labelled
  as UTF-16 while it is parsed as UTF-8 and no encoding was given
  explicitely.
* result/errors/webdav.xml.*: some warnings are no recategorized
  as Namespace errors
Daniel

svn path=/trunk/; revision=3761

9 years agoadd xmlMemDisplayLast to help debug incremental memory leaks, and some
Daniel Veillard [Wed, 30 Jul 2008 12:58:11 +0000 (12:58 +0000)]
add xmlMemDisplayLast to help debug incremental memory leaks, and some

* include/libxml/xmlmemory.h xmlmemory.c: add xmlMemDisplayLast to
  help debug incremental memory leaks, and some cleanups
* runxmlconf.c: use that new call and avoid ever touching the
  system catalog in the regression tests
Daniel

svn path=/trunk/; revision=3760

9 years agoan XML-1.0 document can't load an 1.1 entity when using entities make sure
Daniel Veillard [Wed, 30 Jul 2008 12:35:40 +0000 (12:35 +0000)]
an XML-1.0 document can't load an 1.1 entity when using entities make sure

* parser.c include/libxml/xmlerror.h: an XML-1.0 document can't load
  an 1.1 entity
* runxmlconf.c: when using entities make sure we load them
Daniel

svn path=/trunk/; revision=3759

9 years agofix a bug not detecting cross entity comments probably when comment
Daniel Veillard [Tue, 29 Jul 2008 16:44:59 +0000 (16:44 +0000)]
fix a bug not detecting cross entity comments probably when comment

* parser.c: fix a bug not detecting cross entity comments probably
  when comment parsing got optimized.
* Makefile.am: add make check
* runxmlconf.c: fix the log file name
Daniel

svn path=/trunk/; revision=3758

9 years agoadd a C program to run the W3C test suite, work in progress add a new
Daniel Veillard [Tue, 29 Jul 2008 16:12:31 +0000 (16:12 +0000)]
add a C program to run the W3C test suite, work in progress add a new

* runxmlconf.c Makefile.am: add a C program to run the W3C test
  suite, work in progress
* xmllint.c: add a new option --oldxml10 to use the old parser
* parser.c: fix the XML_PARSE_OLD10 processing of the new option
  and a bug in version parsing
Daniel

svn path=/trunk/; revision=3757

9 years agospace and tabs cleanup Daniel
Daniel Veillard [Tue, 29 Jul 2008 09:13:19 +0000 (09:13 +0000)]
space and tabs cleanup Daniel

* xpath.c: space and tabs cleanup
Daniel

svn path=/trunk/; revision=3756

9 years agoimplement XML-1.0 5th edition, add parser option XML_PARSE_OLD10 to stick
Daniel Veillard [Tue, 29 Jul 2008 09:02:27 +0000 (09:02 +0000)]
implement XML-1.0 5th edition, add parser option XML_PARSE_OLD10 to stick

* include/libxml/parser.h include/libxml/xmlerror.h parser.c:
  implement XML-1.0 5th edition, add parser option XML_PARSE_OLD10
  to stick to old behaviour
* testapi.c gentest.py: modified slightly and regenerated
* Makefile.am: add testchar
Daniel

svn path=/trunk/; revision=3755

9 years agoadd a new regression test program for testing character ranges and UTF8
Daniel Veillard [Thu, 24 Jul 2008 15:05:38 +0000 (15:05 +0000)]
add a new regression test program for testing character ranges and UTF8

* Makefile.am testchar.c Makefile.tests README.tests: add a
  new regression test program for testing character ranges and
  UTF8 encoding/decoding
Daniel

svn path=/trunk/; revision=3754

9 years agofix the build root Daniel
Daniel Veillard [Wed, 23 Jul 2008 13:35:50 +0000 (13:35 +0000)]
fix the build root Daniel

* libxml.spec.in: fix the build root
Daniel

svn path=/trunk/; revision=3753

9 years agofix problem with xmlStreamPop when pattern includes a "." element (see
William M. Brack [Thu, 17 Jul 2008 05:29:16 +0000 (05:29 +0000)]
fix problem with xmlStreamPop when pattern includes a "." element (see

* pattern.c: fix problem with xmlStreamPop when pattern includes a "." element (see discussion on libxslt list)

svn path=/trunk/; revision=3752

9 years agofix line number on text nodes, problem raised by Ralf Junker Daniel
Daniel Veillard [Mon, 7 Jul 2008 13:52:52 +0000 (13:52 +0000)]
fix line number on text nodes, problem raised by Ralf Junker Daniel

* SAX2.c: fix line number on text nodes, problem raised by Ralf Junker
Daniel

svn path=/trunk/; revision=3751

9 years agofix crash with invalid whitespace facet
Rob Richards [Sun, 29 Jun 2008 15:04:41 +0000 (15:04 +0000)]
fix crash with invalid whitespace facet

* xmlschemas.c: fix crash with invalid whitespace facet

svn path=/trunk/; revision=3750

9 years agoSwitch off debugging, oops, Daniel
Daniel Veillard [Wed, 25 Jun 2008 04:11:24 +0000 (04:11 +0000)]
Switch off debugging, oops, Daniel

svn path=/trunk/; revision=3749

9 years agoadd a section in the FAQ about multithread and xmlCleanupParser Daniel
Daniel Veillard [Wed, 11 Jun 2008 08:14:22 +0000 (08:14 +0000)]
add a section in the FAQ about multithread and xmlCleanupParser Daniel

* doc/xml.html doc/FAQ.html: add a section in the FAQ about
  multithread and xmlCleanupParser
Daniel

svn path=/trunk/; revision=3748

9 years agoapply a couple of fixes based on a Coverity report forwarded by Derrick
Daniel Veillard [Tue, 10 Jun 2008 14:56:11 +0000 (14:56 +0000)]
apply a couple of fixes based on a Coverity report forwarded by Derrick

* catalog.c: apply a couple of fixes based on a Coverity report
  forwarded by Derrick Price.
* VxWorks/README VxWorks/Makefile VxWorks/build.sh: instructions
  Makefile, and shell script to build on VxWorks 6.4+ provided by
  Jim Wert.
Daniel

svn path=/trunk/; revision=3747

9 years agoapply patch from Martin fixing python whitespaces following previous
Daniel Veillard [Tue, 3 Jun 2008 16:08:54 +0000 (16:08 +0000)]
apply patch from Martin fixing python whitespaces following previous

* python/generator.py python/setup.py: apply patch from Martin fixing
  python whitespaces
* NEWS: following previous commit rebuilt now in UTF-8
Daniel

svn path=/trunk/; revision=3746

9 years agopatch from Hans de Goede to switch the file to UTF-8 switch to generate
Daniel Veillard [Mon, 2 Jun 2008 16:04:12 +0000 (16:04 +0000)]
patch from Hans de Goede to switch the file to UTF-8 switch to generate

* ChangeLog: patch from Hans de Goede to switch the file to UTF-8
* doc/news.xsl: switch to generate the NEWS file in UTF-8 instead of
  ISO-8859-1
Daniel

svn path=/trunk/; revision=3745

9 years agoavoid a regexp crash, should fix #523738 Daniel
Daniel Veillard [Mon, 12 May 2008 13:15:35 +0000 (13:15 +0000)]
avoid a regexp crash, should fix #523738 Daniel

* xmlregexp.c: avoid a regexp crash, should fix #523738
Daniel

svn path=/trunk/; revision=3744

9 years agofx compilation when configured without the reader should fix #513110
Daniel Veillard [Mon, 12 May 2008 12:58:46 +0000 (12:58 +0000)]
fx compilation when configured without the reader should fix #513110

* xmlschemas.c runtest.c testapi.c include/libxml/xmlreader.h
  python/types.c python/libxml_wrap.h python/libxml.c: fx compilation
  when configured without the reader should fix #513110
* doc/*: regenerated
Daniel

svn path=/trunk/; revision=3743

9 years agocheck for stdint.h and define types when using MSVC
Rob Richards [Sat, 3 May 2008 12:34:25 +0000 (12:34 +0000)]
check for stdint.h and define types when using MSVC

* dict.c: check for stdint.h and define types when using MSVC

svn path=/trunk/; revision=3742

9 years agoapplied patch from Ashwin to avoid a potential double-free Daniel
Daniel Veillard [Mon, 28 Apr 2008 18:07:29 +0000 (18:07 +0000)]
applied patch from Ashwin to avoid a potential double-free Daniel

* parserInternals.c: applied patch from Ashwin to avoid a potential
  double-free
Daniel

svn path=/trunk/; revision=3741

9 years agoapplied patch from Ashwin fixing a number of realloc problems improve
Daniel Veillard [Thu, 24 Apr 2008 11:58:41 +0000 (11:58 +0000)]
applied patch from Ashwin fixing a number of realloc problems improve

* uri.c: applied patch from Ashwin fixing a number of realloc problems
* HTMLparser.c: improve handling for misplaced html/head/body
Daniel

svn path=/trunk/; revision=3740

9 years agoimprovement on the hashing of the dictionnary, with visible speed up as
Daniel Veillard [Tue, 22 Apr 2008 08:28:50 +0000 (08:28 +0000)]
improvement on the hashing of the dictionnary, with visible speed up as

* dict.c: improvement on the hashing of the dictionnary, with visible
  speed up as the number of strings in the hash increases, work from
  Stefan Behnel
Daniel

svn path=/trunk/; revision=3739

9 years agoadded new function xmlSchemaValidCtxtGetParserCtxt based on Holger
Daniel Veillard [Fri, 11 Apr 2008 12:58:43 +0000 (12:58 +0000)]
added new function xmlSchemaValidCtxtGetParserCtxt based on Holger

* include/libxml/xmlschemas.h xmlschemas.c: added new function
  xmlSchemaValidCtxtGetParserCtxt based on Holger Kaelberer patch
* doc/apibuild.py doc/*: regenerated the doc, chased why the new
  function didn't got any documentation, added more checking in the
  generator
* include/libxml/relaxng.h include/libxml/schematron.h
  include/libxml/xmlschemas.h include/libxml/c14n.h
  include/libxml/xmlregexp.h include/libxml/globals.h
  include/libxml/xmlreader.h threads.c xmlschemas.c: various changes
  and cleanups following the new reports
Daniel

svn path=/trunk/; revision=3738

9 years agoextend the cleanup rule space cleanup Daniel
Daniel Veillard [Thu, 10 Apr 2008 08:09:25 +0000 (08:09 +0000)]
extend the cleanup rule space cleanup Daniel

* Makefile.am: extend the cleanup rule
* xmlschemas.c: space cleanup
Daniel

svn path=/trunk/; revision=3737

9 years agosupport older win32 platforms when building with newer versions of VS
Rob Richards [Wed, 9 Apr 2008 17:49:09 +0000 (17:49 +0000)]
support older win32 platforms when building with newer versions of VS

* include/wsockcompat.h: support older win32 platforms when building
  with newer versions of VS

svn path=/trunk/; revision=3736

9 years agopreparing release of 2.6.32 Daniel LIBXML2.6.32
Daniel Veillard [Tue, 8 Apr 2008 14:58:41 +0000 (14:58 +0000)]
preparing release of 2.6.32 Daniel

* configure.in NEWS doc/*: preparing release of 2.6.32
Daniel

svn path=/trunk/; revision=3734

9 years agofix a bug introduced when fixing #438208 and reported by Ashwin fix an
Daniel Veillard [Tue, 8 Apr 2008 08:20:08 +0000 (08:20 +0000)]
fix a bug introduced when fixing #438208 and reported by Ashwin fix an

* tree.c: fix a bug introduced when fixing #438208 and reported by
  Ashwin
* python/generator.py: fix an infinite loop bug
Daniel

svn path=/trunk/; revision=3733

9 years agofix a link to XmlNodeType doc reported by Martijn Arts rebuilt Daniel
Daniel Veillard [Mon, 7 Apr 2008 12:46:48 +0000 (12:46 +0000)]
fix a link to XmlNodeType doc reported by Martijn Arts rebuilt Daniel

* xmlreader.c: fix a link to XmlNodeType doc reported by Martijn Arts
* docs/*: rebuilt
Daniel

svn path=/trunk/; revision=3732

9 years agoimprove the *Recover* functions documentation Daniel
Daniel Veillard [Fri, 4 Apr 2008 16:10:51 +0000 (16:10 +0000)]
improve the *Recover* functions documentation Daniel

* parser.c: improve the *Recover* functions documentation
Daniel

svn path=/trunk/; revision=3731

9 years agopatch from Mark Rowe fixing BOM or encoding detection in external parsed
Daniel Veillard [Thu, 3 Apr 2008 12:59:06 +0000 (12:59 +0000)]
patch from Mark Rowe fixing BOM or encoding detection in external parsed

* parser.c: patch from Mark Rowe fixing BOM or encoding detection
  in external parsed entities, should fix #440415
Daniel

svn path=/trunk/; revision=3730

9 years agofix some problems with the *EatName functions when running out of memory
Daniel Veillard [Thu, 3 Apr 2008 11:17:21 +0000 (11:17 +0000)]
fix some problems with the *EatName functions when running out of memory

* tree.c: fix some problems with the *EatName functions when
  running out of memory raised by Eric Schrock , should fix #438208
Daniel

svn path=/trunk/; revision=3729

9 years agohorror around the definition of the lexical values for decimal and derived
Daniel Veillard [Thu, 3 Apr 2008 10:43:52 +0000 (10:43 +0000)]
horror around the definition of the lexical values for decimal and derived

* xmlschemastypes.c: horror around the definition of the lexical
  values for decimal and derived types, fixing to reject empty
  values, should fix #503268
Daniel

svn path=/trunk/; revision=3728

9 years agobuffer may not be large enough to convert to UCS4, patch from Christian
Daniel Veillard [Thu, 3 Apr 2008 09:46:34 +0000 (09:46 +0000)]
buffer may not be large enough to convert to UCS4, patch from Christian

* encoding.c: buffer may not be  large enough to convert to
  UCS4, patch from Christian Fruth , fixes #504015
Daniel

svn path=/trunk/; revision=3727

9 years agoapparently it's okay to forget the semicolumn after entity refs in HTML,
Daniel Veillard [Thu, 3 Apr 2008 09:05:05 +0000 (09:05 +0000)]
apparently it's okay to forget the semicolumn after entity refs in HTML,

* HTMLparser.c: apparently it's okay to forget the semicolumn after
  entity refs in HTML, fixing char refs parsing accordingly based on
  T. Manske patch, this should fix #517653
Daniel

svn path=/trunk/; revision=3726

9 years agoavoid a scary realloc() loop should fix #520383 Daniel
Daniel Veillard [Thu, 3 Apr 2008 07:31:25 +0000 (07:31 +0000)]
avoid a scary realloc() loop should fix #520383 Daniel

* error.c: avoid a scary realloc() loop should fix #520383
Daniel

svn path=/trunk/; revision=3725

9 years agomore realloc problems pointed out by Ashwin Daniel
Daniel Veillard [Thu, 3 Apr 2008 06:24:04 +0000 (06:24 +0000)]
more realloc problems pointed out by Ashwin Daniel

* parser.c: more realloc problems pointed out by Ashwin
Daniel

svn path=/trunk/; revision=3724

9 years agoapplied patch from Mike Hommey fixing distclean, fixes #520387 Daniel
Daniel Veillard [Thu, 3 Apr 2008 05:41:28 +0000 (05:41 +0000)]
applied patch from Mike Hommey fixing distclean, fixes #520387 Daniel

* xstc/Makefile.am: applied patch from Mike Hommey fixing distclean,
  fixes #520387
Daniel

svn path=/trunk/; revision=3723

9 years agosmall doc improvement for xmlXPathContext from Jack Jansen, fixes #524759
Daniel Veillard [Thu, 3 Apr 2008 04:56:04 +0000 (04:56 +0000)]
small doc improvement for xmlXPathContext from Jack Jansen, fixes #524759

* include/libxml/xpath.h: small doc improvement for xmlXPathContext
  from Jack Jansen, fixes #524759
* doc/newapi.xsl doc/*: fixed a problem and regenerated the docs
Daniel

svn path=/trunk/; revision=3722

9 years agotwo patches from Alvaro Herrera to avoid problem when running out of
Daniel Veillard [Tue, 1 Apr 2008 08:00:31 +0000 (08:00 +0000)]
two patches from Alvaro Herrera to avoid problem when running out of

* xpath.c: two patches from Alvaro Herrera to avoid problem when
  running out of memory in XPath evaluations.
Daniel

svn path=/trunk/; revision=3721

9 years agolot of out of memory handling fixes from Ashwin work around a problem with
Daniel Veillard [Mon, 31 Mar 2008 09:26:00 +0000 (09:26 +0000)]
lot of out of memory handling fixes from Ashwin work around a problem with

* parser.c: lot of out of memory handling fixes from Ashwin
* elfgcchack.h doc/elfgcchack.xsl: work around a problem with xmlDllMain
* include/libxml/threads.h: indenting cleanups
Daniel

svn path=/trunk/; revision=3720

9 years agotrying to clarify even more the xmlCleanupParser() use and the memory
Daniel Veillard [Mon, 31 Mar 2008 08:27:07 +0000 (08:27 +0000)]
trying to clarify even more the xmlCleanupParser() use and the memory

* parser.c docs/*: trying to clarify even more the xmlCleanupParser()
  use and the memory documentation
Daniel

svn path=/trunk/; revision=3719

9 years agochanges based on Alex Khesin patch where xmlParseCharRef seems to not be
Daniel Veillard [Wed, 26 Mar 2008 17:41:38 +0000 (17:41 +0000)]
changes based on Alex Khesin patch where xmlParseCharRef seems to not be

* parser.c: changes based on  Alex Khesin patch where xmlParseCharRef
  seems to not be checked correctly, fixes #520198
Daniel

svn path=/trunk/; revision=3718

9 years agopatch from Ashwin to avoid a problem of attribute redefinition in the DTD.
Daniel Veillard [Wed, 26 Mar 2008 14:06:44 +0000 (14:06 +0000)]
patch from Ashwin to avoid a problem of attribute redefinition in the DTD.

* parser.c: patch from Ashwin to avoid a problem of attribute
  redefinition in the DTD. Remove a warning too.
Daniel

svn path=/trunk/; revision=3717

9 years agofix a problem in externalSubsetSplit with a patch from Ashwin Daniel
Daniel Veillard [Wed, 26 Mar 2008 13:39:31 +0000 (13:39 +0000)]
fix a problem in externalSubsetSplit with a patch from Ashwin Daniel

* xmlschemas.c: fix a problem in externalSubsetSplit with a patch
  from Ashwin
Daniel

svn path=/trunk/; revision=3716

9 years agofix various attribute normalisation problems reported by Ashwin this
Daniel Veillard [Tue, 25 Mar 2008 16:52:41 +0000 (16:52 +0000)]
fix various attribute normalisation problems reported by Ashwin this

* 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

9 years agofix saving for file:///X:/ URI embedding Windows file paths should fix
Daniel Veillard [Tue, 25 Mar 2008 13:22:41 +0000 (13:22 +0000)]
fix saving for file:///X:/ URI embedding Windows file paths should fix

* uri.c: fix saving for file:///X:/ URI embedding Windows file paths
  should fix #524253
Daniel

svn path=/trunk/; revision=3714

9 years agofix a problem reported by Ashwin for system parameter entities referenced
Daniel Veillard [Mon, 24 Mar 2008 20:45:21 +0000 (20:45 +0000)]
fix a problem reported by Ashwin for system parameter entities referenced

* 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

9 years agofix an XML Schemas crash raised by Stefan Behnel when testing with W3C
Daniel Veillard [Mon, 24 Mar 2008 14:06:19 +0000 (14:06 +0000)]
fix an XML Schemas crash raised by Stefan Behnel when testing with W3C

* xmlschemas.c: fix an XML Schemas crash raised by Stefan Behnel
  when testing with W3C test suite
Daniel

svn path=/trunk/; revision=3712

9 years agocheck some allocation with Ashwin patch Daniel
Daniel Veillard [Mon, 24 Mar 2008 11:12:55 +0000 (11:12 +0000)]
check some allocation with Ashwin patch Daniel

* threads.c: check some allocation with Ashwin patch
Daniel

svn path=/trunk/; revision=3711