|
01461791
|
2013-08-06T09:55:55
|
|
Drop not needed checks
https://bugzilla.gnome.org/show_bug.cgi?id=704075
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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()
|
|
e8de99f9
|
2013-08-05T01:26:25
|
|
Fix XPath expressions of the form '@ns:*'
Use namespace for match-all queries on the attribute axis.
|
|
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]'.
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
81b96178
|
2013-07-22T13:01:11
|
|
Two smal namespace tweaks
An improvement of the documentation, and an extra safety check
for xmlSetNs()
|
|
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>
|
|
6dd7775f
|
2013-07-12T11:18:11
|
|
Another round of fixes for older versions of Python
|
|
e71dce18
|
2013-07-11T15:41:22
|
|
Catch malloc error and exit accordingly
As pointed privately by Bill Parker <wp02855@gmail.com>
|
|
6c9c611b
|
2013-07-10T23:00:54
|
|
python: fix drv_libxml2.py for python3 compatibility
https://bugzilla.gnome.org/show_bug.cgi?id=703979
|
|
33a25af7
|
2013-07-02T09:47:26
|
|
missing else in xlink.c
Obviously forgotten
|
|
6eea2f2c
|
2013-05-30T19:00:50
|
|
python: Fix compiler warnings when building python3 bindings
|
|
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
|
|
e38217ae
|
2013-05-10T15:40:13
|
|
Forgot to document 2.9.1 release, regenerate docs
|
|
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
|
|
1ba80b7b
|
2013-05-09T16:02:16
|
|
properly quote the namespace uris written out during c14n
|
|
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.
|
|
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
|
|
d4a5d981
|
2013-04-30T17:45:36
|
|
Cast encoding name to char pointer to match arg type
|
|
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
|
|
10ec19ab
|
2013-05-02T16:11:46
|
|
Fix missing break on last() function for attributes
pointed out by cppcheck
|
|
960f0e27
|
2013-04-23T20:44:55
|
|
Do not URI escape in server side includes
|
|
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.
|
|
f4e5a699
|
2013-04-19T15:36:36
|
|
Release of libxml2-2.9.1
* configure.in: bumped version
* doc/*: updated the symbols file and regenerated
|
|
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
|
|
9ca816b3
|
2013-04-16T22:00:13
|
|
Fix a couple of return without value
Error introduced in previous commit !
|
|
b1237111
|
2013-04-12T18:53:53
|
|
Improve the hashing functions
|
|
e50ba816
|
2013-04-11T15:54:51
|
|
Improve handling of xmlStopParser()
Add a specific parser error
Try to stop parsing as quickly as possible
|
|
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.
|
|
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.
|
|
4d7a3295
|
2012-11-23T23:30:49
|
|
rebuild docs:Makefile.am
|
|
95850fcd
|
2012-09-12T01:32:40
|
|
elfgcchack.h after rebuild in doc
|
|
2ff92843
|
2012-09-12T01:32:11
|
|
elfgcchack for buf module
|
|
54ae471c
|
2013-04-01T16:37:05
|
|
Regenerated API, and testapi, rebuild documentation
After the previous commit adding 2 new entry points
|
|
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>
|
|
87f3287d
|
2013-04-01T13:33:42
|
|
Fix tree iterators broken by 2to3 script
|
|
2cb6bf8e
|
2013-03-30T21:38:20
|
|
update all tests for Python3 and Python2
|
|
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
|
|
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
|
|
d8a75bff
|
2013-03-28T00:16:42
|
|
Converting apibuild.py to python3
not finished ....
|
|
3cb1ae26
|
2013-03-27T22:40:54
|
|
First pass at starting porting to python3
|
|
a5e513a5
|
2013-03-29T14:36:15
|
|
Fix a uneeded and wrong extra link parameter
|
|
b8e3f80d
|
2013-03-28T09:46:20
|
|
updated configure.in for python3
|
|
0ab8ce53
|
2013-03-28T08:47:42
|
|
Switched comment in file to UTF-8 encoding
|
|
215a7296
|
2013-03-28T11:23:45
|
|
Extend gitignore
|
|
519bc6a3
|
2012-09-19T13:41:56
|
|
Add support for xpathRegisterVariable in Python
|
|
483272f3
|
2013-03-27T13:37:14
|
|
Added a regression tests from bug 694228 data
Provided by Mark Rowe <mrowe@apple.com>
|
|
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
|
|
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.
|
|
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
|
|
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>
|
|
f7aeda24
|
2013-03-23T10:31:26
|
|
Fix the URL of the SAX docuemntation from James
as it has moved
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
d749528a
|
2013-02-27T13:11:47
|
|
Silent the new python test on input
Just make it silent if there is no error
|
|
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.
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
2af19f98
|
2013-01-28T17:44:53
|
|
Cleanup of a duplicate test
in an and expression, pointed by Thomas Jarosch <thomas.jarosch@intra2net.com>
Daniel
|
|
eea38159
|
2013-01-28T16:55:30
|
|
Cleanup on duplicate test expressions
As pointed out by Thomas Jarosch <thomas.jarosch@intra2net.com>
Daniel
|
|
9c8eaabe
|
2013-01-04T12:41:53
|
|
Fix compiler warning after 153cf15905cf4ec080612ada6703757d10caba1e
Add missing cast for xmlNop to silence a compiler warning.
|
|
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
|
|
e4d16d79
|
2012-12-21T10:58:14
|
|
xmllint should not load DTD by default when using the reader
|
|
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.
|
|
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
|
|
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
|
|
fb27e2cd
|
2012-09-28T08:59:33
|
|
Fix spelling of "length".
|
|
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.
|
|
6a36fbe3
|
2012-10-29T10:39:55
|
|
Fix potential out of bound access
|
|
4ea74a44
|
2012-10-29T10:27:18
|
|
Fix a portability issue for GCC < 3.4.0
|
|
153cf159
|
2012-10-26T13:50:47
|
|
Fix large parse of file from memory
https://bugzilla.redhat.com/show_bug.cgi?id=862969
The new code trying to detect excessive input lookup would
just get wrong sometimes in the case of very large file parsed
directly from memory.
|
|
711b15d5
|
2012-10-25T19:23:26
|
|
Fix a bug in the nsclean option of the parser
Raised as a side effect of:
https://bugzilla.gnome.org/show_bug.cgi?id=663844
|
|
a7982ce2
|
2012-10-25T15:39:39
|
|
Adding streaming validation to runtest checks
|
|
1abd221b
|
2012-10-25T15:37:50
|
|
Add a --pushsmall option to xmllint
To test the push parser with small chunks or 10 bytes
|
|
6c91aa38
|
2012-10-25T15:33:59
|
|
Fix a regression in 2.9.0 breaking validation while streaming
https://bugzilla.gnome.org/show_bug.cgi?id=684774
with help from Kjell Ahlstedt <kjell.ahlstedt@bredband.net>
|
|
87b4d6f6
|
2012-10-11T14:44:22
|
|
Spec cleanups and a fix for multiarch support
|
|
7457c67f
|
2012-10-11T12:25:51
|
|
Remove potential calls to exit()
|
|
713434d2
|
2012-09-26T10:21:06
|
|
Silence a clang warning
as reported by Hans Wennborg <hans@chromium.org>
|
|
7e86eb5d
|
2012-09-20T21:46:19
|
|
Cleanup the Copyright to be pure MIT Licence wording
|
|
bbe19451
|
2012-09-18T11:15:06
|
|
Windows build fixes
Building 2.9.0 on MSVC7.1 was failing
This is because HAVE_CONFIG_H is not #defined
The patch addresses the above, adds testrecurse.exe and the
standard "make check" suite of tests to the MSVC makefile, and also
fixes the following (MSVC7.1) warnings:
buf.c(674) : warning C4028: formal parameter 1 different from
declaration
libxml2\timsort.h(71) : warning C4028: formal parameter 1 different from
declaration
|
|
3f6cfbd1
|
2012-09-12T17:34:53
|
|
Fix a thread portability problem
cannot compile libxml2-2.9.0 using studio 12.1 compiler on solaris 10
I.M.O. structure initializer (as PTHREAD_ONCE_INIT) cannot be used in
a structure assignment anyway
|
|
e7715a59
|
2012-09-14T14:39:42
|
|
rand_seed should be static in dict.c
For https://bugzilla.gnome.org/show_bug.cgi?id=683933
rand_seed should be a static variable in dict.c
We ran into a problem with another library that exports rand_seed as a
function. Combined with 2.7.8 this was not a problem but later versions
have this problem.
|