- 23 Feb, 2015 2 commits
-
-
Daniel Veillard authored
For https://bugzilla.gnome.org/show_bug.cgi?id=744980 The error handling of Conditional Section also need to be straightened as the structure of the document can't be guessed on a failure there and it's better to stop parsing as further errors are likely to be irrelevant.
-
Daniel Veillard authored
For https://bugzilla.gnome.org/show_bug.cgi?id=744980 There are times, like on unterminated entities that it's preferable to stop parsing, even if that means less error reporting. Entities are feeding the parser on further processing, and if they are ill defined then it's possible to get the parser to bug. Also do the same on Conditional Sections if the input is broken, as the structure of the document can't be guessed.
-
- 18 Feb, 2015 1 commit
-
-
Tomas Radej authored
Allow compilation and packaging of both python2 and python3 when present
-
- 13 Feb, 2015 1 commit
-
-
Samuel Martin authored
Align the include directories on those from the pkg-config module. Signed-off-by:
Samuel Martin <s.martin49@gmail.com>
-
- 23 Dec, 2014 1 commit
-
-
Nick Wellnhofer authored
This partially reverts my previous commit fixing bug #741919.
-
- 22 Dec, 2014 1 commit
-
-
Michael Heimpold authored
Fixes bug #704908 The declarations of pthread functions, used to generate weak references to them, fail to suppress macros. Thus, if any pthread function has been provided as a macro, compiling threads.c will fail. This breaks on musl libc, which defines pthread_equal as a macro (in addition to providing the function, as required). Prevent the declarations for e.g. musl libc by refining the condition. The idea for this solution was borrowed from the alpine linux guys, see http://git.alpinelinux.org/cgit/aports/tree/main/libxml2/libxml2-pthread.patchSigned-off-by:
Michael Heimpold <mhei@heimpold.de>
-
- 18 Dec, 2014 1 commit
-
-
Nick Wellnhofer authored
-
- 28 Oct, 2014 1 commit
-
-
Daniel Veillard authored
as configure.in was renamed
-
- 27 Oct, 2014 1 commit
-
-
Philip Withnall authored
As detected by Coverity (CIDs 60467–60472). https://bugzilla.gnome.org/show_bug.cgi?id=739220
-
- 23 Oct, 2014 2 commits
-
-
Daniel Veillard authored
For https://bugzilla.gnome.org/show_bug.cgi?id=738805 Tortuous test case provided by pierre.labastie@neuf.fr
-
Daniel Veillard authored
For https://bugzilla.gnome.org/show_bug.cgi?id=738805 The fix for CVE-2014-3660 introduced a regression in some case where entity substitution is required and the entity is used first in anotther entity referenced from an attribute value
-
- 17 Oct, 2014 1 commit
-
-
Daniel Veillard authored
This reverts commit 054c716e. As this break xmlcatalog command https://bugzilla.redhat.com/show_bug.cgi?id=1153753
-
- 16 Oct, 2014 10 commits
-
-
Daniel Veillard authored
-
Daniel Veillard authored
-
Daniel Veillard authored
Issues related to the billion laugh entity expansion which happened to escape the initial set of fixes
-
Bart De Schuymer authored
When the xml parser encounters an xml encoding in an xml header while configured with option XML_PARSE_IGNORE_ENC, it fails to free memory allocated for storing the encoding. The patch below fixes this. How to reproduce: 1. Change doc/examples/parse4.c to add xmlCtxtUseOptions(ctxt, XML_PARSE_IGNORE_ENC); after the call to xmlCreatePushParserCtxt. 2. Rebuild 3. run the following command from the top libxml2 directory: LD_LIBRARY_PATH=.libs/ valgrind --leak-check=full ./doc/examples/.libs/parse4 ./test.xml , where test.xml contains following input: <?xml version="1.0" encoding="UTF-81" ?><hi/> valgrind will report: ==1964== 10 bytes in 1 blocks are definitely lost in loss record 1 of 1 ==1964== at 0x4C272DB: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==1964== by 0x4E88497: xmlParseEncName (parser.c:10224) ==1964== by 0x4E888FE: xmlParseEncodingDecl (parser.c:10295) ==1964== by 0x4E89630: xmlParseXMLDecl (parser.c:10534) ==1964== by 0x4E8B737: xmlParseTryOrFinish (parser.c:11293) ==1964== by 0x4E8E775: xmlParseChunk (parser.c:12283) Signed-off-by: Bart De Schuymer <bart at amplidata com>
-
Roumen Petrov authored
-
Roumen Petrov authored
-
Roumen Petrov authored
-
Roumen Petrov authored
-
Roumen Petrov authored
-
Roumen Petrov authored
(after rebuild in doc)
-
- 13 Oct, 2014 7 commits
-
-
Yegor Yefremov authored
If realloc fails, free original pointer. Signed-off-by:
Yegor Yefremov <yegorslists@googlemail.com>
-
Samuel Martin authored
* add libxml2-config.cmake.in template * configure.ac: add libxml2-config.cmake.in to the configured file list * Makefile.am: install libxml2-config.cmake under ${libdir}/cmake/libxml2 Signed-off-by:
Samuel Martin <s.martin49@gmail.com>
-
Daniel Veillard authored
the doc methode for xmlDocGetRootElement wasn't generated anymore
-
Daniel Veillard authored
-
Kurt Roeckx authored
For https://bugzilla.gnome.org/show_bug.cgi?id=689483 It seems there are functions that do use the const qualifier for some of the arguments, but it seems that there are a lot of functions that don't use it and probably should. So I created a patch against 2.9.0 that makes as much as possible const in tree.h, and changed other files as needed. There were a lot of cases like "const xmlNodePtr node". This doesn't actually do anything, there the *pointer* is constant not the object it points to. So I changed those to "const xmlNode *node". I also removed some consts, mostly in the Copy functions, because those functions can actually modify the doc or node they copy from
-
Francis Dupont authored
For https://bugzilla.gnome.org/show_bug.cgi?id=737937 Visual Studio 14 CTP (the VS which comes with Windows 10) defines snprintf(). It could be seen as a good idea as snprintf() is part of the C99 standard but unfortunately libxml2 as many packages defines snprintf as _snprintf, the function to use for any previous versions of the Visual Studio runtime. More, to avoid hiding/shadowing snprintf() declaration in stdio.h is protected by an "#ifdef snprintf" followed by an "#error", so compilation fails. But the fix is easy: the corresponding C/C++ compiler defines _MSC_VER to 1900 so it is enough to guard the snprintf define against it, cf. the attached patch for win32config.h (from 2.9.1 "latest" tarball).
-
Daniel Veillard authored
For https://bugzilla.gnome.org/show_bug.cgi?id=737851 Based on report from mike.vanduzee@caris.com , we were missing calling LeaveCriticalSection() when count was down to 0 hence not freeing adequately the related resource.
-
- 10 Oct, 2014 3 commits
-
-
Patrick Monnerat authored
-
Patrick Monnerat authored
-
Daniel Veillard authored
-
- 09 Oct, 2014 1 commit
-
-
Daniel Veillard authored
Moving configure.in to configure.ac since all tools complain about it
-
- 08 Oct, 2014 1 commit
-
-
Daniel Veillard authored
For https://bugzilla.gnome.org/show_bug.cgi?id=736417 basically a weird side effect and a failure to properly parenthesize a boolean expression led to this bug
-
- 07 Oct, 2014 3 commits
-
-
Dmitriy authored
For https://bugzilla.gnome.org/show_bug.cgi?id=737532 add save, change and restore LDFLAGS before AC_CHECK_LIB call when functions gzread and lzma_code are searching inside action-if-found of AC_CHECK_HEADERS
-
Gaurav authored
For https://bugzilla.gnome.org/show_bug.cgi?id=738053 At many places in xpointer.c Null check is missing which is dereferenced at later places.
-
Gaurav authored
For https://bugzilla.gnome.org/show_bug.cgi?id=738052 superfluous check
-
- 06 Oct, 2014 3 commits
-
-
Dennis Filder authored
For https://bugzilla.gnome.org/show_bug.cgi?id=672539 Reported by Axel Miller <axel.miller@ppi.de> Consider the following start-tag: <x xmlns=""version=""> The start-tag does not conform to the rule [40] STag ::= '<' Name (S Attribute)* S? '>' since there is no whitespace in front of the attribute "version". Thus, libxml2 should reject the start-tag. But it doesn't: $ echo '<x xmlns=""version=""/>' | xmllint - <?xml version="1.0"?> <x xmlns="" version=""/> The error seems to happen only if there is a namespace declaration in front of the attribute. A missing whitespace between other attributes is handled correctly: $ echo '<x someattr=""version=""/>' | xmllint - -:1: parser error : attributes construct error <x someattr=""version=""/> ^ [...]
-
Gaurav authored
For https://bugzilla.gnome.org/show_bug.cgi?id=705392 Cut out an unused block
-
Daniel Veillard authored
For https://bugzilla.gnome.org/show_bug.cgi?id=707027 A few pointer dereference before NULL check fixed. Removed a useless test
-