Log

Author Commit Date CI Message
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 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 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 b8e3f80d 2013-03-28T09:46:20 updated configure.in for python3
Daniel Veillard 0ab8ce53 2013-03-28T08:47:42 Switched comment in file to UTF-8 encoding
Daniel Veillard 215a7296 2013-03-28T11:23:45 Extend gitignore
Shaun McCance 519bc6a3 2012-09-19T13:41:56 Add support for xpathRegisterVariable in Python
Daniel Veillard 483272f3 2013-03-27T13:37:14 Added a regression tests from bug 694228 data Provided by Mark Rowe <mrowe@apple.com>
Daniel Veillard ab0e3504 2013-03-27T13:21:38 Activate detection of encoding in external subset https://bugzilla.gnome.org/show_bug.cgi?id=694228 the ctxt->encoding was percolated down when parsing the external subset leading to failures
Daniel Veillard 113384f1 2013-03-27T11:43:41 Add documentation for xmllint --xpath https://bugzilla.gnome.org/show_bug.cgi?id=694822 this wasn't documented in the man page, and there was a typo in xmllint help output.
Mikhail Titov 8e2098ae 2013-03-27T11:00:31 Fix an output buffer flushing conversion bug for https://bugzilla.gnome.org/show_bug.cgi?id=694982 On a flush operation, everything must be converted
Denis Pauk e1631e1c 2013-03-10T12:47:37 Few cleanup patches for Windows https://bugzilla.gnome.org/show_bug.cgi?id=690878 provided by Cole <coleharrisjohnson@gmail.com>
Daniel Veillard f7aeda24 2013-03-23T10:31:26 Fix the URL of the SAX docuemntation from James as it has moved
Csaba László 1f6c42cf 2013-03-18T15:30:00 Fix an old bug in xmlSchemaValidateOneElement Recently I have run into the very same problem Tiberius Duluman did back in Wed, 13 May 2009 15:56:55 +0300 ([xml] Bug in xmlSchemaValidateOneElement function). Now I can proof now that his problem is a valid problem. I checked the latest available version of xmlschemas.c (2.9.0.) and the problem is still there! I think I have found a solution to the problem which I'd like proof with you: My quick solution to the problem is to replace line 27849 in xmlschemas.c (v2.9.0.) in function xmlSchemaVDocWalk valRoot = xmlDocGetRootElement(vctxt->doc); with this one: valRoot = vctxt->validationRoot ? vctxt->validationRoot : xmlDocGetRootElement(vctxt->doc); Currently I'm using version 2.7.8. in Windows and this change seems to solve the problem.
Daniel Veillard cff2546f 2013-03-11T15:57:55 Cache presence of '<' in entities content slightly modify how ent->checked is used, and use the lowest bit to keep the information
Daniel Veillard a3f1e3e5 2013-03-11T13:57:53 Avoid extra processing on entities If an entity has already been checked for correctness no need to check it on every reference
Gilles Espinasse a0989068 2013-03-04T22:46:21 Fix configure cannot remove messages this is the other way to solve ./configure cannot remove messages by simply removing rm detection in configure.in There is already a raw 'rm -f' at the end on configure.in
Daniel Veillard c100e69c 2013-02-28T19:02:32 fix schema validation in combination with xsi:nil Based on Thomas Gamper <icicle@cg.tuwien.ac.at> findings and initial patch There is no point doing a regexp validation of further content if there actually is no further content because the element is nilled.
Steve Wolf 19d785b5 2013-02-28T18:22:46 xmlCtxtReadFile doesn't work with literal IPv6 URLs https://bugzilla.gnome.org/show_bug.cgi?id=694185 RedHat Bug 624626 discusses the new behavior of libxml regarding brackets around IPv6 addresses. In earlier versions such as 2.6.27, uri.c stripped the brackets (e.g. uri->server == "fdf2:1e39:73d1:934e::119"); in the current version it returns IPv6 addresses with brackets intact (e.g. uri->server == "[fdf2:1e39:73d1:934e::119]"). Thus in 2.9.0, xmlCtxtReadFile() has a problem when it is passed a URL containing a literal IPv6 address. xmlCtxReadFile() and its subroutines pass uri->server unchanged to getaddrinfo(), which doesn't recognize a bracketed IPv6 address, so the read fails. This strips the [ and ] from IPv6 addresses allowing getaddrinfo() to work properly with such URIs.
Alexey Neyman d749528a 2013-02-27T13:11:47 Silent the new python test on input Just make it silent if there is no error
Alexey Neyman a9016c49 2013-02-25T16:07:09 Fix a few problems with setEntityLoader 1. Setting entity loader does not increment the refcount on the Python object passed in. This works only if the object is not deleted. For example, the following code results in segmentation fault in Python interpreter when attempting to process any document: [[[ def register_entity_loader(): def entity_loader(URL, ID, ctxt): ... libxml2.setEntityLoader(entity_loader register_entity_loader() ]]] 2. setEntityLoader() does not verify if the passed object is callable. If it is not, current implementation attempts to call it anyway and failing that, silently moves on to default entity loader. Attached patch makes setEntityLoader raise ValueError exception if non-callable object is passed. 3. In debug mode, pythonExternalEntityLoader() outputs the result object to stderr, while the messages before and after the object (description + newline) go to stdout. Attached patch makes them all go to stdout.
Alexey Neyman 48da90bc 2013-02-25T15:54:25 Python binding for xmlRegisterInputCallback It is possible to make xmlIO handle any protocol by means of xmlRegisterInputCallback(). However, that function is currently only available in C API. So, the natural solution seems to be implementing Python bindings for the xmlRegisterInputCallback. * python/generator.py: skip xmlPopInputCallbacks * python/libxml.c python/libxml.py python/libxml_wrap.h: implement the wrappers * python/tests/input_callback.py python/tests/Makefile.am: also add a test case
Alexey Neyman e32ceb93 2013-02-20T18:28:25 Python bindings: DOM casts everything to xmlNode I noticed another issue with Python bindings of libxml: the access methods do not cast the pointers to specific classes such as xmlDtd, xmlEntityDecl, etc. For example, with the following document: <?xml version="1.0"?> <!DOCTYPE root [<!ELEMENT root EMPTY>]> <root/> the following script: import libxml2 doc = libxml2.readFile("c.xml", None, libxml2.XML_PARSE_DTDLOAD) print repr(doc.children) prints: <xmlNode (root) object at 0xb74963ec> With properly cast nodes, it outputs the following: <xmlDtd (root) object at 0xb746352c> The latter object (xmlDtd) enables one to use DTD-specific methods such as debugDumpDTD(), copyDTD(), and so on.
Daniel Veillard 23f05e0c 2013-02-19T10:21:49 Detect excessive entities expansion upon replacement If entities expansion in the XML parser is asked for, it is possble to craft relatively small input document leading to excessive on-the-fly content generation. This patch accounts for those replacement and stop parsing after a given threshold. it can be bypassed as usual with the HUGE parser option.
Daniel Veillard bf058dce 2013-02-13T18:19:42 Fix the flushing out of raw buffers on encoding conversions https://bugzilla.gnome.org/show_bug.cgi?id=692915 the new set of converting functions tried to limit the encoding conversion of the raw buffer to the consumption one to work in a more progressive fashion. Unfortunately this was bad for performances and led to errors on progressive parsing when a very large chunk was close to the end of the document. Fix the new internal function and switch back to the old way of converting. Fix another bug in the process.
Daniel Veillard de0cc20c 2013-02-12T16:55:34 Fix some buffer conversion issues https://bugzilla.gnome.org/show_bug.cgi?id=690202 Buffer overflow errors originating from xmlBufGetInputBase in 2.9.0 The pointers from the context input were not properly reset after that call which can do reallocations.
Mark Salter 60adeea9 2013-02-11T12:45:56 Fix rpmbuild --nocheck if the %check section was omitted some of the file needed for packaging would not be generated, move the generation to the proper place.
Daniel Veillard 23922c53 2013-02-11T11:52:44 When calling xmlNodeDump make sure we grow the buffer quickly Make sure the underlying new buffer allocated use a double-it scheme for the time of the dump.
Daniel Veillard 2af19f98 2013-01-28T17:44:53 Cleanup of a duplicate test in an and expression, pointed by Thomas Jarosch <thomas.jarosch@intra2net.com> Daniel
Daniel Veillard eea38159 2013-01-28T16:55:30 Cleanup on duplicate test expressions As pointed out by Thomas Jarosch <thomas.jarosch@intra2net.com> Daniel
Patrick Gansterer 9c8eaabe 2013-01-04T12:41:53 Fix compiler warning after 153cf15905cf4ec080612ada6703757d10caba1e Add missing cast for xmlNop to silence a compiler warning.
Dan Winship cf8f0424 2012-12-21T11:13:31 Fix an error in the progressive DTD parsing code For https://bugzilla.gnome.org/show_bug.cgi?id=689958 We were looking for the wrong character in the input stream
Daniel Veillard e4d16d79 2012-12-21T10:58:14 xmllint should not load DTD by default when using the reader
Daniel Richard a0571ebe 2012-12-12T17:16:00 Fix for win32/configure.js and WITH_THREAD_ALLOC Building git master gives me the following error on Windows; this patch fixes it: icl /EP /nologo /I..\include /D "NOLIBTOOL" /D "_REENTRANT" libxml2.def. src > int.msvc\libxml2.def libxml2.def.src Z:\...\libxml2-git8123c4f6_debug\win32\../include/libxml/xmlversion.h(105): error: unrecognized token #if @WITH_THREAD_ALLOC@ ^ Z:\...\libxml2-git8123c4f6_debug\win32\../include/libxml/xmlversion.h(105): error: expected an expression #if @WITH_THREAD_ALLOC@ ^ Z:\...\libxml2-git8123c4f6_debug\win32\../include/libxml/xmlversion.h(105): error: unrecognized token #if @WITH_THREAD_ALLOC@ ^ NMAKE : fatal error U1077: 'icl' : return code '0x2' Stop.
Petr Sumbera 6f49c73b 2012-12-12T15:41:30 Try IBM-037 when looking for EBCDIC handlers http://en.wikipedia.org/wiki/EBCDIC_037 as it is another variat of EBCDIC
Daniel Veillard 8123c4f6 2012-11-08T16:24:07 Fix Broken multi-arch support in xml2-config partial revert of 87b4d6f6105658a99b976f812223c8edf4469265 coming from Fedora/RHEL/... but breaking other distros as pointed out by Daniel Richard
Michael Wood fb27e2cd 2012-09-28T08:59:33 Fix spelling of "length".
Tim Starling 0ad948ed 2012-10-29T13:41:55 Define LIBXML_THREAD_ALLOC_ENABLED via xmlversion.h Otherwise, direct calls to xmlFree() etc. from the application will use a different set of allocation functions to what was used to allocate the memory internally.