uri.c


Log

Author Commit Date CI Message
Nick Wellnhofer e6f25fdc 2024-06-26T14:15:26 uri: Fix documentation of xmlBuildRelativeURI
Nick Wellnhofer 54c6c7e4 2024-06-23T21:51:52 uri: Only set file scheme for special Windows paths Fixes 2ce70cde. Also fix a test case.
Nick Wellnhofer 2ce70cde 2024-06-23T16:24:46 uri: Handle filesystem paths in xmlBuildRelativeURISafe This mainly fixes issues on Windows but should also fix a few general corner cases. Should fix #745.
Nick Wellnhofer 28b9bb03 2024-06-22T21:51:52 uri: Enable Windows paths on Cygwin
Nick Wellnhofer 4c3d22b0 2024-06-20T21:06:38 uri: Fix xmlBuildURI with NULL base Don't try to parse URI if base is NULL. Fixes functions like xmlParseDTD with certain filenames. Should fix #742.
Nick Wellnhofer 4467b891 2024-06-12T13:32:32 Add missing argument checks for new API functions
Nick Wellnhofer e75e878e 2024-05-20T13:58:22 doc: Update and fix documentation
Nick Wellnhofer ab631971 2023-12-28T17:07:03 uri: Keep fragment intact when resolving filesystem paths
Nick Wellnhofer 8ab1b122 2023-12-23T00:00:15 Fix filename and URI handling Many strings are passed to the library that could be either URIs or filesystem paths. We now assume that strings are a URI if they contain the substring "://". This means that they have a scheme and an authority. Otherwise, URI resolution wouldn't make much sense. Fix xmlBuildURI to work with filesystem paths. If the base URI doesn't contain "://" it is treated as filename. The resolved URI is unescaped, appended and the result is normalized. Rewrite xmlNormalizePath to handle Windows quirks. All special handling for Windows paths is removed in xmlCanonicPath. If the path looks like an URI, only escape characters allowed in Legacy Extended IRIs. Make xmlPathToURI only call xmlCanonicPath. Theh additional round-trip through URI parser and serializer seems useless. Add a helper function xmlConvertUriToPath in xmlIO.c which checks for file URIs and unescapes them. Always process strings with xmlCanonicPath in xmlLoadExternalEntity. This should be harmless now. Should help with #334, #387, #611.
Nick Wellnhofer 28913232 2023-12-22T23:58:43 uri: Clean up special parsing modes Add function to handle unreserved check. Give flags meaningful names. Add support to allow ucschars from Legacy Extended IRIs.
Nick Wellnhofer da996c8d 2023-12-10T14:46:59 uri: Report malloc failures Fix many places where malloc failures weren't reported, for example after calling xmlStrdup. Introduce new public API functions that return a separate error code if a memory allocation fails: - xmlParseURISafe - xmlBuildURISafe - xmlBuildRelativeURISafe Update the fuzzer to check whether malloc failures are reported.
Nick Wellnhofer 699299ca 2023-09-20T18:54:39 globals: Stop including globals.h
Nick Wellnhofer f65133fc 2023-01-22T14:13:56 uri: Add explicit cast in xmlSaveUri Fix -fsanitize=implicit-conversion error. We should probably percent-escape the host name here.
Nick Wellnhofer ae0c9cfa 2022-12-12T23:54:39 uri: Fix handling of port numbers Allow port number without host, real fix for #71. Also compare port numbers in xmlBuildRelativeURI. Fix handling of port numbers in xmlUriEscape.
Nick Wellnhofer 8ed40c62 2022-12-13T00:51:33 Revert "uri: Allow port without host" This reverts commit f30adb54f55e4e765d58195163f2a21f7ac759fb. Fixes #460.
Nick Wellnhofer f30adb54 2022-11-14T21:05:32 uri: Allow port without host Don't set port to -1 when host is missing. Host can be empty according to spec. Fixes #71.
Nick Wellnhofer 76d6b0d7 2022-11-14T21:02:15 html: Don't escape ASCII chars in href attributes In several cases, href attributes can contain ASCII characters which are illegal in URIs. Escaping them often does more harm than good. Fixes #321.
Nick Wellnhofer 6843fc72 2022-09-01T02:58:00 Remove or annotate char casts
Nick Wellnhofer 2cac6269 2022-09-01T03:14:13 Don't use sizeof(xmlChar) or sizeof(char)
Nick Wellnhofer 0f568c0b 2022-08-26T01:22:33 Consolidate private header files Private functions were previously declared - in header files in the root directory - in public headers guarded with IN_LIBXML - in libxml.h - redundantly in source files that used them. Consolidate all private header files in include/private.
Nick Wellnhofer 2489c1d0 2022-02-28T22:42:10 Remove useless __CYGWIN__ checks From what I can tell, some really early Cygwin versions from around 1998-2000 used to erroneously define _WIN32. This was eventually fixed, but these days, the `defined(_WIN32) && !defined(__CYGWIN__)` idiom is unnecessary. Now, we only check for __CYGWIN__ in xmlexports.h when deciding whether to use __declspec.
Nick Wellnhofer 346c3a93 2022-02-20T18:46:42 Remove elfgcchack.h The same optimization can be enabled with -fno-semantic-interposition since GCC 5. clang has always used this option by default.
Nick Wellnhofer 0596d67d 2022-01-25T01:39:41 Add explicit cast in xmlURIUnescapeString Avoids an integer conversion warning with UBSan.
Elliott Hughes 7c06d99e 2020-10-27T11:29:20 Fix xmlURIEscape memory leaks. Found by running the fuzz/uri.c fuzzer under asan (internal Android bug 171610679). Always free `ret` when exiting on failure. I've moved the definition of NULLCHK down past where ret is always initialized to make it clear that this is safe. This patch also fixes the indentation of two of the NULLCHK call sites to make it more obvious that NULLCHK isn't `if`-like.
Nick Wellnhofer b46016b8 2020-10-17T18:03:09 Allow port numbers up to INT_MAX Also return an error on overflow.
Nick Wellnhofer 20c60886 2020-03-08T17:19:42 Fix typos Resolves #133.
Jared Yanovich 2a350ee9 2019-09-30T17:04:54 Large batch of typo fixes Closes #109.
Nick Wellnhofer f9fce963 2019-05-16T21:16:01 Fix unsigned integer overflow It's defined behavior but -fsanitize=unsigned-integer-overflow is useful to discover bugs.
Thomas Holder a71b98ec 2018-11-05T14:26:26 cleanup: remove some unreachable code
Thomas Holder b1f87c0e 2018-11-05T14:20:16 Fix building relative URIs Examples: testURI --relative --base file:///a file:///b New correct result: b Old incorrect result: ../b testURI --relative --base file:///a file:/// New correct result: ./ Old incorrect result: ../ testURI --relative --base file:///a/b file:///a/ New correct result: ./ Old incorrect result: ../../a/
Nick Wellnhofer 41c0a13f 2017-10-09T13:32:20 Fix Windows compiler warnings in xmlCanonicPath The code handling Windows paths assigned some char/xmlChar pointers without explicit casts. Also remove an unused variable.
Daniel Veillard 3daee3f1 2017-08-28T21:12:14 Problem resolving relative URIs Raised by Matthias Pigulla <mp@webfactory.de> In a nutshell we had that bug on URI composition after some fixes in the area of localhost empty shortcuts : ./testURI --base file:///some/where file Without patch: file:/some/file With patch: file:///some/file
Nick Wellnhofer 91e54967 2017-06-08T18:25:30 Fix xmlBuildRelativeURI for URIs starting with './' If the relative URI started with './', the 'pos' index was increased which also affected indexing into the base path. Aside from producing wrong results, this could also lead to a heap overread of the base path buffer. The data read from beyond the buffer was only compared to some char values, so this is mostly harmless. Inside libxml2, xmlBuildRelativeURI is only called from xinclude.c. Found with libFuzzer and ASan.
Nick Wellnhofer d6b3645f 2017-05-27T14:44:36 Fix memory leak in xmlCanonicPath Found with libFuzzer and ASan.
Michael Paddon 846cf015 2016-05-21T17:16:05 Integer overflow parsing port number in URI For https://bugzilla.gnome.org/show_bug.cgi?id=765566 in xmlParse3986Port(), uri->port can overflow when parsing a the port number. The type of uri->port is int, so the consequent behavior is undefined and may differ between compilers and architectures
Daniel Veillard beb72810 2014-10-03T19:22:39 Fix a problem properly saving URIs As written by Martin Kletzander <mkletzan@redhat.com>: Since commit 8eb55d782a2b9afacc7938694891cc6fad7b42a5, when you parse and save an URI that has no server (or similar) part, two slashes after the 'schema:' get lost. It means 'uri:///noserver' is turned into 'uri:/noserver'. basically foo:///only/path means a host of "" while foo:/only/path means no host at all So the best fix IMHO is to fix the URI parser to record the first case and an empty host string and the second case as a NULL host string I would not revert the initial patch, we should not 'invent' those slash, but we should instead when parsing keep the information that it's a host based path and that foo:/// means the presence of a host but an empty one. Once applied the resulting patch below, all cases seems to be saved properly: thinkpad:~/XML -> ./testURI uri:/noserver uri:/noserver thinkpad:~/XML -> ./testURI uri:///noserver uri:///noserver thinkpad:~/XML -> ./testURI uri://server/foo uri://server/foo thinkpad:~/XML -> ./testURI uri:/noserver/foo uri:/noserver/foo thinkpad:~/XML -> ./testURI uri:/// uri:/// thinkpad:~/XML -> ./testURI uri:// uri:// thinkpad:~/XML -> ./testURI uri:/ uri:/ thinkpad:~/XML -> If you revert the initial patch that last case fails The problem is that I don't want to change the xmlURI structure to minimize ABI breakage, so I could not extend the field. The natural solution is to denote that uri:/// has an empty host by making the uri server field an empty string which works very well but breaks applications (like libvirt ;-) who blindly look at uri->server not being NULL to try to reach it ! Simplest was to stick the port to -1 in that case, instead of 0 application don't bother looking at the port of there is no server string, this makes the patch more complex than a 1 liner, but is better for ABI.
Dennis Filder 8eb55d78 2014-06-13T14:56:14 xmlSaveUri() incorrectly recomposes URIs with rootless paths For https://bugzilla.gnome.org/show_bug.cgi?id=731063 xmlSaveUri() of libxml2 (snapshot 2014-05-31 and earlier) returns bogus values when called with URIs that have rootless paths (e.g. "urx:b:b" becomes "urx://b%3Ab" where "urx:b%3Ab" would be correct)
Michael Stahl 55b899a2 2012-09-07T12:14:00 Support long path names on WNT so we've got this patch to libxml2 2.7.6 in the LibreOffice code base, inherited from OOo. it fixes a definite problem, which is that Windows has a rather low maximum path length restriction, and there is a special trick on NT whereby path names can be prefixed with "\\?\", in which case the maximum length is 32k, which ought to be sufficient even for bloated office suites :) I'll attach the patch to the xmlCanonicPath function. note that i didn't write this and am by no means an expert on either Microsoftean platforms or libxml so maybe it's not the best way to do it.
Daniel Veillard 57560386 2012-07-24T11:44:23 Cleanup URI module memory allocation code * uri.c: cleanup the code doing the allocations, set up a structured error handler to report memory errors, and set up an abitrary limit on URI saving size * error.c include/libxml/xmlerror.h: add a new FROM_URI indication for structured error reporting, also adding strings for schematron and buffer which were missing
Daniel Veillard fc74a6f5 2012-05-07T15:02:25 URI handling code is not OOM resilient as pointed out by Dan Berrange, add a small comment in the header
Nico Weber cedf84d3 2012-03-05T16:36:59 Fix -Wempty-body warning from clang clang recently grew a warning on `for (...);`. This patch fixes all two instances of this pattern in libxml. The changes don't modify the code semantic.
Daniel Veillard 2ee91eb6 2010-06-04T09:14:16 Fix handling of apos in URIs François Delyon <f.delyon@satimage.fr> pointed out a divergence between the URI code and RFC 3986, fix trivial and seems to not break regression tests
Daniel Veillard 1358fef9 2009-10-02T17:29:48 URI with no path parsing problem * uri.c: Ralf Junker pointed out that URI with no path like http://www.domain.com when parsed ended up with an empty path value instead of NULL, this fixes the problem
Daniel Veillard 13cee4e3 2009-09-05T14:52:55 Fix a bunch of scan 'dead increments' and cleanup * 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()
Daniel Veillard f582d14f 2008-08-27T17:23:41 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
Daniel Veillard 84c45df8 2008-08-06T10:26:06 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
Daniel Veillard d7af5553 2008-08-04T15:29:44 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
Daniel Veillard ed86dc23 2008-04-24T11:58:41 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
Daniel Veillard e54c3173 2008-03-25T13:22:41 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
Daniel Veillard 69f8a13e 2008-02-05T08:37:56 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
William M. Brack 50420196 2007-07-20T01:09:08 applied patch from from Patrik Fimml. Fixes bug #458268 * uri.c: applied patch from from Patrik Fimml. Fixes bug #458268 svn path=/trunk/; revision=3645
Daniel Veillard e61d75f1 2007-05-28T14:16:33 fix bug reported by François Delyon Daniel * uri.c: fix bug reported by François Delyon Daniel svn path=/trunk/; revision=3619
Daniel Veillard a1413b84 2007-04-26T08:33:28 patch from Richard Jones to save the query part in raw form. Daniel * uri.c include/libxml/uri.h: patch from Richard Jones to save the query part in raw form. Daniel svn path=/trunk/; revision=3607
Daniel Veillard 79187654 2007-04-24T10:19:52 More doc cleanup, Daniel svn path=/trunk/; revision=3604
Daniel Veillard a44294f1 2007-04-24T08:57:54 fix xmlURIUnescapeString comments which was confusing Daniel * uri.c: fix xmlURIUnescapeString comments which was confusing Daniel svn path=/trunk/; revision=3603
William M. Brack 22242278 2007-01-27T07:59:37 implemented patch from S. Bidoul for uri.c (bug #389767) * implemented patch from S. Bidoul for uri.c (bug #389767) svn path=/trunk/; revision=3576
Daniel Veillard 481dcfcf 2006-11-06T08:54:18 applied patch from Igor for path conversion on Windows Daniel * uri.c: applied patch from Igor for path conversion on Windows Daniel
Daniel Veillard b8efdda0 2006-10-10T12:37:14 add a new function xmlPathToUri() to provide a clean conversion when * uri.c include/libxml/uri.h: add a new function xmlPathToUri() to provide a clean conversion when setting up a base * SAX2.c tree.c: use said function when setting up doc->URL or using the xmlSetBase function. Should fix #346261 Daniel
Daniel Veillard 30e7607b 2006-03-09T14:13:55 a bunch of small cleanups based on coverity reports. Daniel * HTMLparser.c parser.c parserInternals.c pattern.c uri.c: a bunch of small cleanups based on coverity reports. Daniel
Daniel Veillard 8f3392ef 2006-02-03T09:45:10 applied patch from Rob Richards fixing the URI regressions tests on * uri.c: applied patch from Rob Richards fixing the URI regressions tests on Windows which seems to indicate bad escaping. Daniel
Daniel Veillard 0f7b3310 2005-09-15T14:15:20 more fixes to the behaviour of xmlBuildRelativeURI Daniel * uri.c: more fixes to the behaviour of xmlBuildRelativeURI Daniel
William M. Brack 820d5ed7 2005-09-14T05:24:27 fixed problem when xmlBuildRelativeURI was given a blank path (bug 316224) * uri.c: fixed problem when xmlBuildRelativeURI was given a blank path (bug 316224)
Daniel Veillard 336a8e13 2005-08-07T10:46:19 get rid of the dependancy on a locally installed DTD try to cleanup the * test/relaxng/docbook_0.xml: get rid of the dependancy on a locally installed DTD * uri.c include/libxml/uri.h xmlIO.c nanoftp.c nanohttp.c: try to cleanup the Path/URI conversion mess, needed fixing in various layers and a new API to the uri module which also fixes #306861 * runtest.c: integrated a regression test specific to check the URI conversions done before calling the I/O handlers. Daniel
William M. Brack 38c4b332 2005-07-25T18:39:34 enhanced xmlBuildRelativeURI to allow the URI and the base to be in * uri.c: enhanced xmlBuildRelativeURI to allow the URI and the base to be in "relative" form
Daniel Veillard 5d4644ef 2005-04-01T13:11:58 revamped the elfgcchack.h format to cope with gcc4 change of aliasing * doc/apibuild.py doc/elfgcchack.xsl: revamped the elfgcchack.h format to cope with gcc4 change of aliasing allowed scopes, had to add extra informations to doc/libxml2-api.xml to separate the header from the c module source. * *.c: updated all c library files to add a #define bottom_xxx and reimport elfgcchack.h thereafter, and a bit of cleanups. * doc//* testapi.c: regenerated when rebuilding the API Daniel
William M. Brack 015ccb2c 2005-02-13T08:18:52 This change started out as a simple desire to speed up the execution time of testapi.c, which was being delayed by nameserver requests for non-existent URL's. From there it just sort of grew, and grew.... * nanohttp.c, nanoftp.c: changed the processing of URL's to use the uri.c routines instead of custom code. * include/libxml/xmlerror.h: added code XML_FTP_URL_SYNTAX * uri.c: added accepting ipV6 addresses, in accordance with RFC's 2732 and 2373 (TODO: allow ipV4 within ipV6) * gentest.py, testapi.c: fixed a few problems with the testing of the nanoftp and nanohttp routines. * include/libxml/xmlversion.h: minor change to fix a warning on the docs generation * regenerated the docs
William M. Brack f3cf1a1e 2005-01-06T02:25:59 fixed problem with xmlURIEscape when query part was empty (actually fixed * uri.c: fixed problem with xmlURIEscape when query part was empty (actually fixed xmlURIEscapeStr to return an empty string rather than NULL for empty string input) (bug 163079)
William M. Brack f2a657aa 2004-10-27T16:33:09 fixed a stupid mistake in xmlBuildRelativeURI (bug 156527) * uri.c: fixed a stupid mistake in xmlBuildRelativeURI (bug 156527)
Daniel Veillard 8399ff33 2004-09-22T21:57:53 couple of memory fixes from Mark Vakoc reported by Purify on Windows. * threads.c uri.c: couple of memory fixes from Mark Vakoc reported by Purify on Windows. Daniel
William M. Brack a3215c7a 2004-07-31T16:24:01 many further little changes for OOM problems. Now seems to be getting * SAX2.c, encoding.c, error.c, parser.c, tree.c, uri.c, xmlIO.c, xmlreader.c, include/libxml/tree.h: many further little changes for OOM problems. Now seems to be getting closer to "ok". * testOOM.c: added code to intercept more errors, found more problems with library. Changed method of flagging / counting errors intercepted.
William M. Brack 42331a90 2004-07-29T07:07:16 further fixes for out of memory condition, mostly from Olivier Andrieu. * SAX2.c, tree.c, uri.c, xmlIO.c, xmlreader.c: further fixes for out of memory condition, mostly from Olivier Andrieu. * testOOM.c: some further improvement by Olivier, with a further small enhancement for easier debugging.
Daniel Veillard be3eb208 2004-07-09T12:05:25 fixed a couple of problems in the new elfgcchack.h trick pointed by Peter * libxml.h uri.c: fixed a couple of problems in the new elfgcchack.h trick pointed by Peter Breitenlohner Daniel
William M. Brack f20fbf70 2004-06-25T05:49:08 fixed a problem when base path was "./xxx" 5 test results changed by * uri.c: fixed a problem when base path was "./xxx" * result/XInclude/*: 5 test results changed by above. * Makefile.am: fixed a couple of spots where a new result file used different flags that the testing one.
William M. Brack f7789b13 2004-06-07T08:57:27 added a new routine xmlBuildRelativeURI needed for enhancement of * uri.c, include/libxml/uri.h: added a new routine xmlBuildRelativeURI needed for enhancement of xinclude.c * xinclude.c: changed handling of xml:base (bug 135864) * result/XInclude/*: results of 5 tests changed as a result of the above change
Daniel Veillard 966a31e2 2004-05-09T02:58:44 fixing some problems in URI unescaping and output buffer opening, this * uri.c xmlIO.c: fixing some problems in URI unescaping and output buffer opening, this should fix #141864 Daniel
Daniel Veillard 0a194580 2004-04-01T20:09:22 fix for xmlUriEscape on "http://user@somewhere.com" from Mark Vadok. * uri.c: fix for xmlUriEscape on "http://user@somewhere.com" from Mark Vadok. Daniel
Daniel Veillard 608d0ac9 2003-08-14T22:44:25 fixing an use of strcpy() where both strings overlap pointed out by * uri.c: fixing an use of strcpy() where both strings overlap pointed out by valgrind. Daniel
Daniel Veillard a76fe5ca 2003-04-24T16:06:47 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
Daniel Veillard 3c908dca 2003-04-19T00:07:51 added xmlMallocAtomic() to be used when allocating blocks which do not * DOCBparser.c HTMLparser.c c14n.c catalog.c encoding.c globals.c nanohttp.c parser.c parserInternals.c relaxng.c tree.c uri.c xmlmemory.c xmlreader.c xmlregexp.c xpath.c xpointer.c include/libxml/globals.h include/libxml/xmlmemory.h: added xmlMallocAtomic() to be used when allocating blocks which do not contains pointers, add xmlGcMemSetup() and xmlGcMemGet() to allow registering the full set of functions needed by a garbage collecting allocator like libgc, ref #109944 Daniel
Daniel Veillard 9231ff92 2003-03-23T22:00:51 applied a set of patches from Lorenzo Viali correcting URI parsing errors. * uri.c: applied a set of patches from Lorenzo Viali correcting URI parsing errors. Daniel
Daniel Veillard 42f12e99 2003-03-07T18:32:59 after and exchange with James Clark it appeared I had bug in URI parsing * test/xsdtest/xsdtest.xml uri.c: after and exchange with James Clark it appeared I had bug in URI parsing code ... * relaxng.c include/libxml/relaxng.h: completely revamped error reporting to not loose message from optional parts. * xmllint.c: added timing for RNG validation steps * result/relaxng/*: updated the result, all error messages changed Daniel
Daniel Veillard c64b8e98 2003-02-24T11:47:13 some warning removal on Igor's patch seems I messed up with #106788 fix * uri.c parser.c: some warning removal on Igor's patch * tree.c: seems I messed up with #106788 fix * python/libxml.c: fixed some base problems when Python provides the resolver. * relaxng.c: fixed the interleave algorithm found 373 test schemas: 364 success 9 failures found 529 test instances: 525 success 4 failures the resulting failures are bug in the algorithm from 7.3 and lack of support for params Daniel
Igor Zlatkovic ce07616c 2003-02-23T13:39:39 path handling bug introduced by my recent machinations fixed
Igor Zlatkovic f2238e6e 2003-02-19T14:50:35 introduced xmlCanonicPath
Daniel Veillard d2298791 2003-02-14T16:54:11 more testing on the Relax-NG front, cleaning up the regression tests * check-relaxng-test-suite.py relaxng.c: more testing on the Relax-NG front, cleaning up the regression tests failures current state and I forgot support for "mixed": found 373 test schemas: 280 success 93 failures found 529 test instances: 401 success 68 failures * tree.c include/libxml/tree.h xmlschemastypes.c: finished and moved the Name, NCName and QName validation routine in tree.c * uri.c: fixed handling of URI ending up with #, i.e. having an empty fragment ID. * result/relaxng/*: updated the results Daniel
Daniel Veillard 7b4b2f9d 2003-01-06T13:11:20 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
Daniel Veillard ea7751d5 2002-12-20T00:16:24 working on DTD validation on top of xml reader interfaces. Allows to * testReader.c xmlreader.c valid.c include/libxml/tree.h include/libxml/valid.h include/libxml/xmlreader.h: working on DTD validation on top of xml reader interfaces. Allows to validate arbitrary large instances. This required some extensions to the valid module interface and augmenting the size of xmlID and xmlRef structs a bit. * uri.c xmlregexp.c: simple cleanup. Daniel
Daniel Veillard fdd27d27 2002-11-28T11:55:38 Johann Richard pointed out some XPointer problems for URN based URI * uri.c: Johann Richard pointed out some XPointer problems for URN based URI references in XInclude. Modified the URI parsing and saving routines to allow correct parsing and saving of XPointers, especially when attached to "opaque" scheme accordingly to RFC 2396 Daniel
Daniel Veillard e645e8c1 2002-10-22T17:35:37 Applied the VMS update patch from Craig A. Berry update Daniel * vms/build_libxml.com vms/config.vms vms/readme.vms include/libxml/parser.h include/libxml/parserInternals.h include/libxml/tree.h include/libxml/xmlIO.h HTMLparser.c catalog.c debugXML.c parser.c parserInternals.c tree.c triodef.h trionan.c uri.c xmlIO.c xpath.c: Applied the VMS update patch from Craig A. Berry * doc/*.html: update Daniel
Aleksey Sanin 49cc9756 2002-06-14T17:07:10 replaced sprintf() with snprintf() to prevent possible buffer overflow * DOCBparser.c HTMLparser.c debugXML.c encoding.c nanoftp.c nanohttp.c parser.c tree.c uri.c xmlIO.c xmllint.c xpath.c: replaced sprintf() with snprintf() to prevent possible buffer overflow (the bug was pointed out by Anju Premachandran)
Daniel Veillard 234bc4e7 2002-05-24T11:03:05 fixing bug #82848 Daniel * uri.c: fixing bug #82848 Daniel
Daniel Veillard eb475a37 2002-04-14T22:00:22 fixing bug #78662 i.e. add proper escaping of URI when saving HTML files. * HTMLtree.c uri.c: fixing bug #78662 i.e. add proper escaping of URI when saving HTML files. * result/HTML/*: this impacted some tests Daniel
Daniel Veillard 34ce8bec 2002-03-18T19:37:11 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
Daniel Veillard cbaf3995 2001-12-31T16:16:02 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
Daniel Veillard 220346d1 2001-12-07T11:33:54 closed bug #66159 added --escape option some cleanup for xml2-config * uri.c: closed bug #66159 * testURI.c: added --escape option * configure.in: some cleanup for xml2-config --cflags Daniel
Daniel Veillard 43d3f61a 2001-11-10T11:57:23 preparing 2.4.10 upgraded and rebuilt the docs Daniel * configure.in include/libxml/xmlwin32version.h: preparing 2.4.10 * doc/*: upgraded and rebuilt the docs Daniel
Daniel Veillard 4def3bd9 2001-10-30T09:47:47 second pass at fixing #63336, using Joel Young final patch. looks okay. * uri.c: second pass at fixing #63336, using Joel Young final patch. looks okay. Daniel
Daniel Veillard bb6808ea 2001-10-29T23:59:27 trying to clear #63336 allowing the escaping routine to parse unconformant * uri.c include/libxml/uri.h: trying to clear #63336 allowing the escaping routine to parse unconformant URI-References. Daniel
Daniel Veillard d0463560 2001-10-13T09:15:48 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
Daniel Veillard 60087f30 2001-10-10T09:45:09 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