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

3561 Commits

Author SHA1 Message Date
Daniel Veillard
05b37c6893 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
2008-03-31 08:27:07 +00:00
Daniel Veillard
dc1716010a 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
2008-03-26 17:41:38 +00:00
Daniel Veillard
6a31b837e1 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
2008-03-26 14:06:44 +00:00
Daniel Veillard
b3e453675a 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
2008-03-26 13:39:31 +00:00
Daniel Veillard
97c9ce2e99 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
2008-03-25 16:52:41 +00:00
Daniel Veillard
e54c3173b8 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
2008-03-25 13:22:41 +00:00
Daniel Veillard
8bf64aef50 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
2008-03-24 20:45:21 +00:00
Daniel Veillard
77fbc3ea90 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
2008-03-24 14:06:19 +00:00
Daniel Veillard
14d465de48 check some allocation with Ashwin patch Daniel
* threads.c: check some allocation with Ashwin patch
Daniel

svn path=/trunk/; revision=3711
2008-03-24 11:12:55 +00:00
Daniel Veillard
24d87d94bb update from Tycho Hilhorst, should fix #523378 Daniel
* vms/build_libxml.com: update from Tycho Hilhorst, should fix #523378
Daniel

svn path=/trunk/; revision=3710
2008-03-19 15:43:00 +00:00
Daniel Veillard
ddbe38b4f1 check some malloc returns with Ashwin patch, add error messages and
* threads.c: check some malloc returns with Ashwin patch, add
  error messages and reindent the module.
Daniel

svn path=/trunk/; revision=3709
2008-03-18 08:24:25 +00:00
Daniel Veillard
14dad705d5 patch from Ashwin removing duplicate tests Daniel
* xmlreader.c: patch from Ashwin removing duplicate tests
Daniel

svn path=/trunk/; revision=3708
2008-03-14 14:29:40 +00:00
Daniel Veillard
c4b0debc1e applied patch from Tobias Minich to allow plugin schematron error
* include/libxml/schematron.h include/libxml/xmlerror.h schematron.c:
  applied patch from Tobias Minich to allow plugin schematron error
  reporting in the normal error system, should fix #513998
Daniel

svn path=/trunk/; revision=3707
2008-03-14 12:46:42 +00:00
Daniel Veillard
37d2d16c89 patch from Vasily Chekalkin fixes memory leaks, should fix 512647 Daniel
* parser.c xinclude.c: patch from Vasily Chekalkin fixes memory
  leaks, should fix 512647
Daniel

svn path=/trunk/; revision=3706
2008-03-14 10:54:00 +00:00
Daniel Veillard
10bda629bf found a nasty bug in regexp automata build, reported by Ashwin and Bjorn
* xmlregexp.c: found a nasty bug in regexp automata build,
  reported by Ashwin and Bjorn Reese
Daniel

svn path=/trunk/; revision=3705
2008-03-13 07:27:24 +00:00
Daniel Veillard
35fcbb84d2 patch from Arnold Hendriks improving parsing of html within html bogus
* HTMLparser.c: patch from Arnold Hendriks improving parsing of
  html within html bogus data, still not a complete fix though
Daniel

svn path=/trunk/; revision=3704
2008-03-12 21:43:39 +00:00
Daniel Veillard
5d279c95f8 fix a memory errro when using namespace nodes returned from XPath queries,
* python/types.c: fix a memory errro when using namespace nodes
  returned from XPath queries, should fix #521699
* python/tests/Makefile.am python/tests/xpathns.py: add a specific
  regression test for it
Daniel

svn path=/trunk/; revision=3703
2008-03-12 09:32:04 +00:00
Rob Richards
a544c18909 add ICONV_CONST define for win32 build to satisfy encoding.c change in rev
* include/win32config.h: add ICONV_CONST define for win32 build
  to satisfy encoding.c change in rev 3693

svn path=/trunk/; revision=3702
2008-03-10 15:26:27 +00:00
Daniel Veillard
d0d2f090dc fix handling of empty CDATA nodes as reported and discussed around #514181
* 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
2008-03-07 16:50:21 +00:00
Daniel Veillard
57c9db0725 poblem with encoding detection for UTF-16 reported by Ashwin and found by
* 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
2008-03-06 14:37:10 +00:00
Daniel Veillard
ccc476f177 patch from Alex Khesin fixing CDATA output after a text node. fixed the
* xmlwriter.c: patch from Alex Khesin fixing CDATA output after
  a text node.
* parser.c: fixed the comment for xmlParserCleanup
* globals.c: fixed indentation
Daniel

svn path=/trunk/; revision=3699
2008-03-04 13:19:49 +00:00
Daniel Veillard
70e20add80 patch from Florent Guiliani to fix build on SCO OpenServer daniel
* testModule.c: patch from Florent Guiliani to fix build on
  SCO OpenServer
daniel

svn path=/trunk/; revision=3698
2008-02-25 15:44:43 +00:00
Daniel Veillard
3066351275 made one of the changes suggested by Brian Krahmer allow to pass '--' on
* debugXML.c: made one of the changes suggested by Brian Krahmer
* testRegexp.c: allow to pass '--' on the command line to allow
  regexps starting with the character '-'
Daniel

svn path=/trunk/; revision=3697
2008-02-21 22:31:55 +00:00
Daniel Veillard
5ac88237e1 applied cleanup patches for cross compilation and MinGW from Roumen Petrov
* python/Makefile.am python/tests/Makefile.am: applied cleanup
  patches for cross compilation and MinGW from Roumen Petrov
Daniel

svn path=/trunk/; revision=3696
2008-02-19 07:54:52 +00:00
Daniel Veillard
c4ba8a4221 fix output bug reported by Petr Pajas and analyzed by Bill Daniel
* xmlIO.c: fix output bug reported by Petr Pajas and analyzed by Bill
Daniel

svn path=/trunk/; revision=3695
2008-02-16 10:08:14 +00:00
Daniel Veillard
6f8611fdb4 patch from Julien Charbon to simplify the processing of xmlSetProp()
* include/libxml/xmlerror.h tree.c: patch from Julien Charbon
  to simplify the processing of xmlSetProp()
Daniel

svn path=/trunk/; revision=3694
2008-02-15 08:33:21 +00:00
Daniel Veillard
8e1a46d526 patch from Roumen Petrov to detect if iconv() needs a const for the second
* config.h.in configure.in encoding.c: patch from Roumen Petrov
  to detect if iconv() needs a const for the second parameter
Daniel

svn path=/trunk/; revision=3693
2008-02-15 07:47:26 +00:00
Daniel Veillard
f3da06d6f7 EOL cleanups from Florent Guiliani Daniel
* macos/src/XMLTestPrefix2.h win32/Makefile.msvc: EOL cleanups
  from Florent Guiliani
Daniel

svn path=/trunk/; revision=3692
2008-02-15 07:43:00 +00:00
Daniel Veillard
3ff24115d2 applied patch from Alfred Mickautsch to flush the output at the end of
* xmlwriter.c: applied patch from Alfred Mickautsch to flush the
  output at the end of document.
Daniel

svn path=/trunk/; revision=3691
2008-02-13 10:17:41 +00:00
Daniel Veillard
851b2d0ee5 regenerated, it was truncated. Daniel
* doc/examples/examples.xml: regenerated, it was truncated.
Daniel

svn path=/trunk/; revision=3690
2008-02-08 10:57:57 +00:00
Daniel Veillard
643fb5d7e0 apply simple patch from Carlo Bramini to avoid compilation problems with
* xmlmodule.c: apply simple patch from Carlo Bramini to avoid
  compilation problems with Mingw32
Daniel

svn path=/trunk/; revision=3689
2008-02-08 10:49:46 +00:00
Daniel Veillard
9e3a513c45 EOL cleanup from Florent Guiliani, Daniel
svn path=/trunk/; revision=3688
2008-02-08 10:42:41 +00:00
Daniel Veillard
041b687e93 apply patch from Andrew Tosh to fix behaviour when '.' is used in a
* 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
2008-02-08 10:37:18 +00:00
Daniel Veillard
b242b08831 applied patch from Florent Guilian to remove an useless mutex in the
* dict.c: applied patch from Florent Guilian to remove an
  useless mutex in the xmlDict structure.

older, not commited ...

* SAX2.c: another leak reported by Ashwin
* xinclude.c: fixed the behaviour when XIncluding a fragment
  of the current document, patch from Chris Ryan

Daniel


svn path=/trunk/; revision=3686
2008-02-08 09:56:31 +00:00
William M. Brack
ead3583b47 added space for port number (when not 80) in xmlNanoHTTPMethodRedir, plus
* nanohttp.c: added space for port number (when not 80) in
  xmlNanoHTTPMethodRedir, plus a few more comments. Should
  fix #514521.

svn path=/trunk/; revision=3685
2008-02-06 04:12:46 +00:00
Daniel Veillard
7d0ca5e88c apply fix suggested by Ashwin correcting a cut-n-paste error about the SAX
* schemas.c: apply fix suggested by Ashwin correcting a cut-n-paste
  error about the SAX callback in cdataBlockSplit when streaming
  XSD validation 
Daniel

svn path=/trunk/; revision=3684
2008-02-05 08:43:52 +00:00
Daniel Veillard
69f8a13e52 applied a patch based on Petr Sumbera one to avoid a problem with paths
* uri.c: applied a patch based on Petr Sumbera one to avoid a 
  problem with paths starting with //
Daniel

svn path=/trunk/; revision=3683
2008-02-05 08:37:56 +00:00
Daniel Veillard
ad87d5e891 added a small section on returning memory to the kernel by compacting the
* doc/xml.html doc/xmlmem.html: added a small section on returning
  memory to the kernel by compacting the heap provided by Wolfram Sang
Daniel

svn path=/trunk/; revision=3682
2008-02-04 16:50:03 +00:00
Rob Richards
82fbf579b2 fix build under VS 2008. patch by David Wimsey
* include/win32config.h win32/Makefile.msvc: fix build under VS 2008.
  patch by David Wimsey

svn path=/trunk/; revision=3681
2008-01-25 19:03:37 +00:00
Daniel Veillard
c707d0b765 fix a memeory leak in internal subset parsing with a fix from Ashwin add
* 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
2008-01-24 14:48:54 +00:00
Daniel Veillard
72c1dfd9c6 preparing release of 2.6.31 daniel
* configure.in doc/*: preparing release of 2.6.31
daniel

svn path=/trunk/; revision=3679
2008-01-24 14:39:12 +00:00
Daniel Veillard
28b64e2a6c Prepare docs for release of 2.6.31, Daniel
svn path=/trunk/; revision=3677
2008-01-11 09:07:51 +00:00
Daniel Veillard
b3edafd72d avoid a warning on 64bits introduced earlier make more checking on the
* parser.c: avoid a warning on 64bits introduced earlier
* parserInternals.c: make more checking on the UTF-8 input
Daniel

svn path=/trunk/; revision=3676
2008-01-11 08:00:57 +00:00
Daniel Veillard
c5b43cc03a avoid stopping parsing when encountering out of range characters in an
* HTMLparser.c: avoid stopping parsing when encountering
  out of range characters in an HTML file, report and 
  continue processing instead, should fix #472696
Daniel

svn path=/trunk/; revision=3675
2008-01-11 07:41:39 +00:00
Daniel Veillard
9ebb632238 patches from John Carr to start cleaning up 'make diskcheck' problems c.f.
* check-relaxng-test-suite2.py check-relaxng-test-suite.py
  Makefile.am python/tests/Makefile.am python/Makefile.am
  check-xsddata-test-suite.py: patches from John Carr to
  start cleaning up 'make diskcheck' problems c.f. #506228
Daniel

svn path=/trunk/; revision=3674
2008-01-11 07:19:24 +00:00
Daniel Veillard
5608b174b7 apply fix from Stefan Kost to avoid a crash in xmllint, fixes 504284
* xmllint.c: apply fix from Stefan Kost to avoid a crash
  in xmllint, fixes 504284
Daniel

svn path=/trunk/; revision=3673
2008-01-11 06:53:15 +00:00
Daniel Veillard
aa2404e92e apply patch from Fred Crozat to avoid outputting -L/usr/lib from
* xml2-config.in: apply patch from Fred Crozat to avoid
  outputting -L/usr/lib from xml2-config, fixes #497012
Daniel

svn path=/trunk/; revision=3672
2008-01-11 06:44:00 +00:00
Daniel Veillard
640f89ef61 fix definition for <embed> to avoid error when saving back, patch from
* HTMLparser.c: fix definition for <embed> to avoid error
  when saving back, patch from Stefan Behnel fixing 495213
Daniel

svn path=/trunk/; revision=3671
2008-01-11 06:24:09 +00:00
Daniel Veillard
9e264adfb1 applied patch from Christian Schmidt fixing a column counter update
* parser.c: applied patch from Christian Schmidt fixing a 
  column counter update problem, fixes #472696
Daniel

svn path=/trunk/; revision=3670
2008-01-11 06:10:16 +00:00
Daniel Veillard
ac4118d5ca handle a erroneous parsing of attributes in case said attribute has been
* parser.c: handle a erroneous parsing of attributes in 
  case said attribute has been redeclared in the DTD with a
  different type
* hash.c: fix the hash scanner to not crash if a first element
  from the hash list is been removed in the callback
Daniel

svn path=/trunk/; revision=3669
2008-01-11 05:27:32 +00:00