Log

Author Commit Date CI Message
Daniel Veillard 9cd1c3cf 2014-04-22T15:30:56 Do not fetch external parameter entities Unless explicitely asked for when validating or replacing entities with their value. Problem pointed out by Daniel Berrange <berrange@redhat.com>
Tristan Van Berkom f0dd6e11 2014-04-22T21:15:05 xmlNodeSetName: Allow setting the name to a substring of the currently set name Avoid freeing the currently set name until after having assigned the new name, this allows one to call xmlNodeSetName (node, node->name + 1) to set the new name of the node to a substring of the current name without introducing any crash and without requiring an extra strdup().
Eric Zurcher 7d508fed 2013-12-18T16:47:56 Added macros for argument casts
Daniel Veillard 7e35abeb 2014-03-28T22:55:31 Fix a doc typo Raised by Blasius Bieselbert on IRC
Nick Wellnhofer 07def30f 2014-03-21T19:38:08 Restore context size and position after XPATH_OP_ARG Fixes a bug with predicates: https://mail.gnome.org/archives/xml/2014-March/msg00014.html
Daniel Veillard 6faa126f 2014-03-21T17:05:51 Fix xmlParseInNodeContext() if node is not element We really need to have ctxt->instate == XML_PARSER_CONTENT when jumping in content parsing Bug reported by Frank Gross
Gaurav 085b997c 2014-02-18T11:47:43 Avoid a possible NULL pointer dereference For https://bugzilla.gnome.org/show_bug.cgi?id=708355
Nicolas Le Cam 41586ca6 2013-06-17T13:01:33 Fix compilation with minimum and xinclude. xinclude needs xmlAddNextSibling(). Compile out use of xmlLocationSetPtr when xptr is disabled. Include xpath header.
Nicolas Le Cam 52010c63 2013-06-16T08:55:08 Compile out use of xmlValidateNCName() when not available. Fix compilation with minimum and valid.
Nicolas Le Cam 1af8b7b2 2013-06-14T22:20:37 Fix compilation with minimum and schematron. Add a hard dependancy on tree. Disable write and close callbacks when output is disabled.
Nicolas Le Cam 77b5b464 2014-02-10T10:32:45 Legacy needs xmlSAX2StartElement() and xmlSAX2EndElement(). Fix compilation with minimum and legacy.
Nicolas Le Cam 3313d14f 2013-06-14T21:11:27 Don't use xmlValidateName() when not available. Fix compilation with minimum and debug.
Daniel Veillard c9ecf45d 2014-02-08T02:22:35 Fix xmlTextWriterWriteElement when a null content is given
Longstreth Jon 190a0b89 2014-02-06T10:58:17 Fix a portability issue on Windows Apparently an verflow when comparing macro and unsigned long
Daniel Veillard b0c7e7e5 2014-02-06T10:50:35 Fix an typo 'onrest' in htmlScriptAttributes As pointed out by "Laurent <guitarneck@free.fr>"
Jan Pokorný 75801652 2013-12-19T15:09:14 Fix typos in {tree,xpath}.c (errror) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Daniel Veillard e18bce0d 2014-02-06T10:47:20 fixing a ptotential uninitialized access
Daniel Veillard 15d12040 2014-02-06T10:38:00 Fix an fd leak in an error case
Daniel Veillard 054c716e 2014-01-26T15:02:25 Missing initialization for the catalog module
Nick Wellnhofer 03c67230 2013-12-20T00:01:53 Handling of XPath function arguments in error case The XPath engine tries to guarantee that every XPath function can pop 'nargs' non-NULL values off the stack. libxslt, for example, relies on this assumption. But the check isn't thorough enough if there are errors during the evaluation of arguments. This can lead to segfaults: https://mail.gnome.org/archives/xslt/2013-December/msg00005.html This commit makes the handling of function arguments more robust. * Bail out early when evaluation of XPath function arguments fails. * Make sure that there are 'nargs' arguments in the current call frame.
Jacob (Jouk) Jansen 4d041a2e 2013-12-17T15:32:57 Various portability patches for OpenVMS Available from http://nchrem.tnw.tudelft.nl/openvms/software2.html
Patrick Monnerat 437f4f59 2013-12-12T15:23:09 Use specific macros for portability to OS/400 Some of the entry points for POSIX networking calls in OS/400 differs slightly due to not using const arguments
Patrick Monnerat d1c0cc99 2013-12-12T15:14:47 Add macros needed for OS/400 portability
Patrick Monnerat 1c43f43c 2013-12-12T15:12:53 Portability patch for fopen on OS/400
Patrick Monnerat ca9fc43b 2013-12-12T15:11:40 Portability fixes for OS/400
Patrick Monnerat 0f7a26d8 2013-12-12T15:04:43 Improve va_list portability Support for va_list declared as an array (cannot be referenced explicitly)
Patrick Monnerat 147aaf21 2013-12-12T15:02:40 Portability fix Don't assume fileno for stdin and stdout are 0 and 1
Patrick Monnerat 3a76bfed 2013-12-12T15:01:53 Portability fix increase internal use of a portability macro
Patrick Monnerat 66693cef 2013-12-12T15:00:46 Generic portability fix Undefine common symbol before redefining them
Patrick Monnerat 44313c0a 2013-12-12T14:59:18 Shortening lines in headers no change of semantic
Daniel Veillard e59c244e 2013-12-11T00:01:38 Add limitations about encoding conversion
Daniel Veillard 4e1476c5 2013-12-09T15:23:40 adding init calls to xml and html Read parsing entry points As pointed out by "Tassyns, Bram <BramT@enfocus.com>" on the list some call had it other didn't, clean it up and add to all missing ones
Jan Pokorný 761c9e99 2013-11-29T23:26:27 Get rid of 'REPLACEMENT CHARACTER' Unicode chars in xmlschemas.c Middle dot pairs (as in [1]) turned to grave accents/backticks, section signs to dollars (for compatibility with ASCII). [1] http://www.w3.org/TR/xmlschema-1/ Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Jan Pokorný 7a7cad6e 2013-11-29T23:26:26 Fix typos in xmlschemas{,types}.c Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Jan Pokorný 9a85d40c 2013-11-29T23:26:25 Fix incorrect spelling entites->entities Partially, a follow-up of 81d7a8245cf9a31a49499a5a195c2b89e6f91180. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Gaurav 98a4e712 2013-11-29T23:28:21 Fix a couple of missing NULL checks For https://bugzilla.gnome.org/show_bug.cgi?id=708681
Gaurav 080a22c5 2013-11-29T23:10:50 Avoid a possibility of dangling encoding handler For https://bugzilla.gnome.org/show_bug.cgi?id=711149 In Function: int xmlCharEncCloseFunc(xmlCharEncodingHandler *handler) If the freed handler is any one of handlers[i] list, then it will make that hanldlers[i] as dangling. This may lead to crash issues at places where handlers is read.
Arnold Hendriks 826bc320 2013-11-29T14:12:12 Fix HTML push parser to accept HTML_PARSE_NODEFDTD For https://bugzilla.gnome.org/show_bug.cgi?id=719515 fixes htmlParseTryOrFinish to interpret HTML_PARSE_NODEFDTD, and updates xmllint to actually pass --nodefdtd to the push version of the HTML parser
Mike Alexander a1313a6f 2013-11-28T23:21:23 Fix a bug loading some compressed files For https://bugzilla.gnome.org/show_bug.cgi?id=712528 Related to https://bugzilla.redhat.com/show_bug.cgi?id=877567 There is a bug in xzlib.c which causes certain compressed XML files to fail to load correctly. The code in xz_decomp which attempts to verify the checksum and length of the expanded data fails if the checksum or length at the end of the file crosses a 1024 byte boundary. It calls gz_next4 to get those two values. This function uses the stream state in state->zstrm, but calls xz_avail which uses the state->strm stream info. This causes gz_next4 to signal a premature EOF if the data it is fetching crosses a 1024 byte boundary.
Gaurav fcd45831 2013-11-28T23:01:44 Fix XPath node comparison bug For https://bugzilla.gnome.org/show_bug.cgi?id=715143
Gaurav f3d79416 2013-11-28T22:53:54 Type mismatch in xmlschemas.c For https://bugzilla.gnome.org/show_bug.cgi?id=715152
Gaurav e79226cc 2013-11-28T22:50:57 Type mismatch in xmlschemastypes.c For https://bugzilla.gnome.org/show_bug.cgi?id=715152
Shaun McCance 6473a41a 2013-10-23T14:51:33 Implement choice for name classes on attributes https://bugzilla.gnome.org/show_bug.cgi?id=710744
Philip Withnall f3f86ff4 2013-10-28T17:24:02 build: Use pkg-config to find liblzma in preference to AC_CHECK_LIB This means that liblzma’s Libs.private will be included in LZMA_LIBS if linking the libraries statically, ensuring that there are no undefined symbol errors from liblzma’s private libraries. If pkg-config isn’t installed, or if liblzma.pc couldn’t be found, fall back to using AC_CHECK_LIB as before. This will cause static linking to fail, but that’s not a regression. This does not introduce a compile time dependency on pkg-config. https://bugzilla.gnome.org/show_bug.cgi?id=711026
Philip Withnall f859d9a7 2013-10-28T17:15:07 build: Add @LZMA_LIBS@ to libxml’s pkg-config files If libxml2 is built and linked against liblzma, the latter needs to appear in libxml2’s Libs.private pkg-config field, otherwise static linking against libxml2 will fail due to unresolved liblzma symbols. https://bugzilla.gnome.org/show_bug.cgi?id=711026
Daniel Veillard 4b61cf61 2013-10-02T22:18:21 fix some tabs mixing incompatible with python3 Patrick Welche <prlw1@cam.ac.uk> raised this issue
Gaurav 7d4e259f 2013-09-30T11:27:41 Avoid some dead code and cleanup in relaxng.c https://bugzilla.gnome.org/show_bug.cgi?id=705388 Code needed a bit of cleanup
Daniel Veillard b8bdc258 2013-09-30T11:12:04 Avoid a deadcode in catalog.c For https://bugzilla.gnome.org/show_bug.cgi?id=703504
Denis Pauk 01461791 2013-08-06T09:55:55 Drop not needed checks https://bugzilla.gnome.org/show_bug.cgi?id=704075
Denis Pauk 283c83e0 2013-08-06T09:49:42 run close socket on Solaris, same as we do on other platforms https://bugzilla.gnome.org/show_bug.cgi?id=705188
Gaurav c570b379 2013-09-30T10:43:47 Fix pointer dereferenced before null check for https://bugzilla.gnome.org/show_bug.cgi?id=708364 xmlValidateElementContent is a private function but should still check the ctxt argument before dereferencing
Daniel Veillard 75d13092 2013-09-11T15:11:27 Fix a potential NULL dereference in tree code https://bugzilla.gnome.org/show_bug.cgi?id=707750 Also reported by Gaurav, simple fix to check the pointer before dereference
Gaurav 2671b013 2013-09-11T14:59:06 Fix potential NULL pointer dereferences in regexp code https://bugzilla.gnome.org/show_bug.cgi?id=707749 Fix 3 cases where we might dereference NULL
Tim Galeckas 2205ff4b 2013-08-29T16:44:33 xmllint --pretty crashed without following numeric argument https://bugzilla.gnome.org/show_bug.cgi?id=674789 We need to check for NULL argument before calling atoi()
Nick Wellnhofer e8de99f9 2013-08-05T01:26:25 Fix XPath expressions of the form '@ns:*' Use namespace for match-all queries on the attribute axis.
Nick Wellnhofer b4bcba23 2013-08-05T00:15:11 Fix XPath '//' optimization with predicates My attempt to optimize XPath expressions containing '//' caused a regression reported in bug #695699. This commit disables the optimization for expressions of the form '//foo[predicate]'.
Daniel Veillard ff76eb28 2013-08-03T22:25:13 Clear up a potential NULL dereference https://bugzilla.gnome.org/show_bug.cgi?id=705399 if ctxt->node_seq.buffer is null then ctxt->node_seq.maximum ought to be zero but it's better to clarify the check in the code directly.
Gaurav a885f13a 2013-08-03T22:16:02 Fix a possible NULL dereference https://bugzilla.gnome.org/show_bug.cgi?id=705400 In case of allocation error the pointer was dereferenced before the test for a failure
Denis Pauk e28c8a1a 2013-08-03T14:22:54 #705267 - add additional defines checks for support "./configure --with-minimum" https://bugzilla.gnome.org/show_bug.cgi?id=705267
Daniel Veillard 717042d2 2013-07-22T14:28:20 Avoid crash if allocation fails https://bugzilla.gnome.org/show_bug.cgi?id=704527 xmlSchemaNewValue() may fail on OOM error
Daniel Veillard ccc9cf92 2013-07-22T14:24:16 Fix a wrong test https://bugzilla.gnome.org/show_bug.cgi?id=704530 Arg is an array on the stack and can't be NULL
Daniel Veillard b9e4d5b6 2013-07-22T13:21:31 Remove occasional leading space in XPath number formatting https://bugzilla.gnome.org/show_bug.cgi?id=704528 Somehow snprintf "%*.*e" can generate a leading space, remove it
Daniel Veillard 81b96178 2013-07-22T13:01:11 Two smal namespace tweaks An improvement of the documentation, and an extra safety check for xmlSetNs()
Daniel Veillard b98c6a0a 2013-07-12T12:08:40 Fix handling of mmap errors https://bugzilla.gnome.org/show_bug.cgi?id=702320 as raised by Gaurav <ya1gaurav@gmail.com>
Arfrever Frehtes Taifersar Arahesis 6dd7775f 2013-07-12T11:18:11 Another round of fixes for older versions of Python
Daniel Veillard e71dce18 2013-07-11T15:41:22 Catch malloc error and exit accordingly As pointed privately by Bill Parker <wp02855@gmail.com>
Alexandre Rostovtsev 6c9c611b 2013-07-10T23:00:54 python: fix drv_libxml2.py for python3 compatibility https://bugzilla.gnome.org/show_bug.cgi?id=703979
Ami Fischman 33a25af7 2013-07-02T09:47:26 missing else in xlink.c Obviously forgotten
Armin K 6eea2f2c 2013-05-30T19:00:50 python: Fix compiler warnings when building python3 bindings
Daniel Veillard dcc19503 2013-05-22T22:56:45 Fix a parsing bug on non-ascii element and CR/LF usage https://bugzilla.gnome.org/show_bug.cgi?id=698550 Somehow the behaviour of the internal parser routine changed slightly when encountering CR/LF, which led to a bug when parsing document with non-ascii Names
Daniel Veillard e38217ae 2013-05-10T15:40:13 Forgot to document 2.9.1 release, regenerate docs
Daniel Veillard 63588f47 2013-05-10T14:01:46 Fix a regression in xmlGetDocCompressMode() The switch to xzlib had for consequence that the compression level of the input was not gathered anymore in ctxt->input->buf, then the parser compression flags was left to -1 and propagated to the resulting document. Fix the I/O layer to get compression detection in xzlib, then carry it in the input buffer and the resulting document This should fix https://lsbbugs.linuxfoundation.org/show_bug.cgi?id=3456
Aleksey Sanin 1ba80b7b 2013-05-09T16:02:16 properly quote the namespace uris written out during c14n
Daniel Veillard a75a009d 2013-05-08T13:45:48 xmllint --memory should fail on empty files Exposed by https://bugzilla.gnome.org/show_bug.cgi?id=699896 when doing analysis but a priori unrelated.
Alexey Neyman 0b86537d 2013-05-06T10:20:18 Remove premature XInclude check on URI being relative As it gives false negatives, see https://mail.gnome.org/archives/xml/2013-April/msg00023.html
Nikolay Sivov d4a5d981 2013-04-30T17:45:36 Cast encoding name to char pointer to match arg type
Petr Sumbera 722923bc 2013-05-03T22:25:38 Fix for compilation with python 2.6.8 Remap PyCapsule to PyCObject based on the macro being available instead of using the python version
dcb 10ec19ab 2013-05-02T16:11:46 Fix missing break on last() function for attributes pointed out by cppcheck
Romain Bondue 960f0e27 2013-04-23T20:44:55 Do not URI escape in server side includes
Alexander Pastukhov 704d8c5e 2013-04-23T13:02:11 Fix an error in xmlCleanupParser https://bugzilla.gnome.org/show_bug.cgi?id=698582 xmlCleanupParser calls xmlCleanupGlobals() and then xmlResetLastError() but the later reallocate the global data freed by previous call. Just swap the two calls.
Daniel Veillard f4e5a699 2013-04-19T15:36:36 Release of libxml2-2.9.1 * configure.in: bumped version * doc/*: updated the symbols file and regenerated
Daniel Veillard c0a8dd14 2013-04-19T15:02:33 Fix a linking error for python bindings Showing up apparently in Debian BTS distro https://bugzilla.gnome.org/show_bug.cgi?id=685515
Jüri Aedla 9ca816b3 2013-04-16T22:00:13 Fix a couple of return without value Error introduced in previous commit !
Daniel Franke b1237111 2013-04-12T18:53:53 Improve the hashing functions
Daniel Veillard e50ba816 2013-04-11T15:54:51 Improve handling of xmlStopParser() Add a specific parser error Try to stop parsing as quickly as possible
Daniel Veillard 5fe9e9ed 2013-04-05T23:10:41 Remove risk of lockup in dictionary initialization Reported by Petr Sumbera <petr.sumbera@oracle.com> Two threads entering xmlInitializeDict concurently could lead to a lockup due to multiple initializations of the lock used. To avoid this problem move this to a new private function called from xmlOnceInit() and deprecate the old initalizer. Since threaded programs must call xmlInitParser() and this will lead to dereference of private data and the call to xmlOnceInit() guaranteed to be unique this should be safe now.
Daniel Veillard bf4a8f0e 2013-04-02T10:27:57 Fix python bindings with versions older than 2.7 Need fixing on the Capsule usage, the lack of PyBytes, lack of io module and the way to access exception details.
Roumen Petrov 4d7a3295 2012-11-23T23:30:49 rebuild docs:Makefile.am
Roumen Petrov 95850fcd 2012-09-12T01:32:40 elfgcchack.h after rebuild in doc
Roumen Petrov 2ff92843 2012-09-12T01:32:11 elfgcchack for buf module
Daniel Veillard 54ae471c 2013-04-01T16:37:05 Regenerated API, and testapi, rebuild documentation After the previous commit adding 2 new entry points
Alex Bligh 28876afb 2013-03-23T17:23:27 Add xmlXPathSetContextNode and xmlXPathNodeEval This patch adds xmlXPathSetContextNode and xmlXPathNodeEval, which make it easier to evaluation XPath expressions with a context node other than the document root without poking about inside the internals of the context. This patch is compile-tested only, and is my first libxml2 contribution, so please go easy. Signed-off-by: Alex Bligh <alex@alex.org.uk>
Daniel Veillard 87f3287d 2013-04-01T13:33:42 Fix tree iterators broken by 2to3 script
Daniel Veillard 2cb6bf8e 2013-03-30T21:38:20 update all tests for Python3 and Python2
Daniel Veillard 6f184651 2013-03-29T15:17:40 A few more fixes for python 3 affecting libxml2.py need a few changes to the generator and the libxml.py stub
Daniel Veillard 3798c4ad 2013-03-29T13:46:24 Fix compilation on Python3 while still compiling on recent Python2: - change the handling of files, tweak the generator, get the fd instead of the FILE *, dup it and fdopen based on mode, add a Release function on Python3 and call to flush from the generated python stubs - switch to using Capsules instead of CObjects - fix PyString to PyBytes - fix PyInt to PyLong - tweak the module registration to compile on both versions - drop PyInstance check for passed xmlNodes and instead check attributes presence Daniel
Daniel Veillard d8a75bff 2013-03-28T00:16:42 Converting apibuild.py to python3 not finished ....
Daniel Veillard 3cb1ae26 2013-03-27T22:40:54 First pass at starting porting to python3
Daniel Veillard a5e513a5 2013-03-29T14:36:15 Fix a uneeded and wrong extra link parameter
Daniel Veillard b8e3f80d 2013-03-28T09:46:20 updated configure.in for python3