Daniel Veillard
77b77b1301
Fix SAX2 builder in case of undefined element namespaces
...
Work as in XML-1.0 before namespaces, and use prefix:localname
as the new element name (and no namespace of course)
Also fix 3 cases in the regression tests where the prefix: was
erroneously dropped in such case
2012-01-26 19:11:02 +08:00
Tay Ray Chuan
b8428a2a25
fix reference to STDOUT_FILENO on MSVC
...
The Microsoft Visual C++ compiler doesn't have unistd.h and thus
STDOUT_FILENO is undefined. Define it using stdio.h functions.
2012-01-26 17:47:24 +08:00
Daniel Veillard
a6b14bf9fd
Clarify the need to use xmlFreeNode after xmlUnlinkNode
...
Just add one small sentence to the xmlUnlinkNode function comments
2012-01-26 17:44:35 +08:00
Daniel Veillard
0795348aeb
fix a pair of possible out of array char references
...
When serializing char references back to an character string
Reported by Abhishek Arya <inferno@chromium.org >
2012-01-22 17:42:35 +08:00
Daniel Veillard
04b489cda3
Augment the list of ignored files
2012-01-22 17:35:17 +08:00
Colin Walters
81809d527c
autogen.sh: Honor NOCONFIGURE environment variable
...
See http://people.gnome.org/~walters/docs/build-api.txt
2012-01-05 10:08:03 -05:00
Daniel Veillard
5bd3c06182
Fix an allocation error when copying entities
2011-12-16 18:53:35 +08:00
Chris Evans
77404b8b69
Make sure the parser returns when getting a Stop order
...
patch backported from chromiun bug fixes, assuming author is Chris
2011-12-14 16:18:25 +08:00
Daniel Veillard
cb3549e30a
Improve the error report on undefined REFs
...
Use the tree node to provide the error context instead
of the parser input which is not relevant anymore,
based on a suggestion by François Delyon <f.delyon@satimage.fr >
2011-11-11 13:43:51 +08:00
Xia Xinfeng
5825ebb26a
Fix some potential problems on reallocation failures(parser.c)
...
This problem is the same as d7958b21e7 .
The operation "ctxt->nameMax * = 2;" should be placed after the function
call of xmlRealloc().
2011-11-11 13:43:27 +08:00
Daniel Veillard
bbcf1275fe
Fix a schema type duration comparison overflow
...
https://bugzilla.gnome.org/show_bug.cgi?id=653724
Based on the fix suggested by Nick Pope <nick@nickpope.me.uk >
but just changing the casts to avoid using long long type
2011-11-10 23:23:10 +08:00
Daniel Veillard
7dd0d916c6
Fix an unimplemented part in RNG value validation
...
Forgot to implement <optional> this was raised again
in https://bugzilla.redhat.com/show_bug.cgi?id=752393
as this make libxml2 fail to validate against ODF RNGs
Daniel
2011-11-10 18:08:33 +08:00
Daniel Veillard
1d4526f6f4
Fix missing error status in XPath evaluation
...
Started by Chris Evans, I added a few more place where the
error should have been set in the evaluation context.
2011-10-11 16:34:34 +08:00
Patrick von Reth
f1da8abb62
Fix the Windows build files
...
Patches comming from KDE project for Windows portability
https://projects.kde.org/projects/kdesupport/emerge/repository/revisions/master/entry/portage/testing/libxml2-test/libxml2-2.7.8-20110801.diff
To build libxml2 I had to patch the build system a little bit.
The windows build system tries to link about zdll, but on windows
its called zlib* too, so linking against z is enough.
Also the --include and the --lib command was ignored.
For the http and ftp stuff linking against some windows library's was
forgotten for mingw.
2011-09-14 16:00:28 +08:00
Daniel Veillard
f5048b3e71
Hardening of XPath evaluation
...
Add a mechanism of frame for XPath evaluation when entering a function
or a scoped evaluation, also fix a potential problem in predicate
evaluation.
2011-08-19 11:07:51 +08:00
Daniel Veillard
69f04562f7
Fix an off by one error in encoding
...
this off by one error doesn't seems to reproduce on linux
but the error is real.
2011-08-19 11:05:04 +08:00
Shaun McCance
d7eb9b5d47
Fix RELAX NG include bug #655288
...
When overriding during include, children of the root
node are scanned. But the root node was gotten with
doc->children, instead of xmlDocGetRootElement.
2011-08-04 10:28:59 -04:00
Toyoda Eizi
8bb12988c4
Fix XSD validation bug #630130
...
This bug in xmlschemas made validation with the GML Schemas fail
Test cases to be commited separately
2011-08-04 16:40:48 +08:00
Daniel Veillard
4c4653e587
Add exception for new W3C PI xml-model
2011-06-05 11:29:29 +08:00
Daniel Veillard
c62efc847c
Add options to ignore the internal encoding
...
For both XML and HTML, the document can provide an encoding
either in XMLDecl in XML, or as a meta element in HTML head.
This adds options to ignore those encodings if the encoding
is known in advace for example if the content had been converted
before being passed to the parser.
* parser.c include/libxml/parser.h: add XML_PARSE_IGNORE_ENC option
for XML parsing
* include/libxml/HTMLparser.h HTMLparser.c: adds the
HTML_PARSE_IGNORE_ENC for HTML parsing
* HTMLtree.c: fix the handling of saving when an unknown encoding is
defined in meta document header
* xmllint.c: add a --noenc option to activate the new parser options
2011-05-26 11:47:37 +08:00
Stefan Kost
0329a1471e
testapi: use the right type for the check
...
Fixes a compiler warning. Also wrap the long line if statement.
2011-05-25 17:20:05 +03:00
Stefan Kost
fdd3c04a61
python: remove unused variable
2011-05-25 17:20:05 +03:00
Stefan Kost
c31e06cc18
python: flag two unused args
2011-05-25 17:20:05 +03:00
Stefan Kost
dff8d0f726
various: handle return values of write calls
2011-05-21 21:56:50 +03:00
Stefan Kost
4ea1866f7d
testWriter: xmlTextWriterWriteFormatElement wants an int instead of a long int
...
Fixes compiler warnings about wrong argument type.
2011-05-21 21:56:50 +03:00
Stefan Kost
851ef9489e
runxmlconf: update to latest testsuite version
2011-05-21 21:56:50 +03:00
Stefan Kost
a46b235723
configure: acconfig.h is deprecated since autoconf-2.50
...
Remove deprecated file (leftover from autoconf-2.13). The generated config.h is
the same as we already use the 3-arg versions of AC_DEFINE.
2011-05-21 21:56:50 +03:00
Stefan Kost
85deb486a9
configure: add -Wno-long-long to CFLAGS
2011-05-21 21:56:50 +03:00
Stefan Kost
c9c939d614
configure: support silent automake rules if possible
...
This gives us a much less noisy build and makes error stand out a lot more.
2011-05-21 21:56:50 +03:00
Stefan Kost
ecb5d5afdc
xmlmemory: add a cast as size_t has no portable printf modifier
...
Also use %lu as that is more appropriate for size_t.
2011-05-09 11:49:52 +03:00
Stefan Kost
a15404034c
xpath: remove unused variable
...
As noted by gcc, this variable is not beeing used.
2011-05-09 11:48:21 +03:00
Chris Evans
d7958b21e7
Fix some potential problems on reallocation failures
...
The count was incremented before the allocation
and not fixed in case of failure
* xpath.c: corrects a few instances where the available count of some
structure is updated before we know the allocation actually
succeeds
2011-03-23 08:13:06 +08:00
Daniel Veillard
dde64081f9
Improve documentation a bit
2011-03-23 08:12:26 +08:00
Daniel Veillard
28fdf8bb51
Updated URL for lxml python bindings
...
Also fixed the warning for XPath threaded usage a bit
2011-03-07 08:12:39 +08:00
Dmitry V. Levin
c2a0fdc4e6
__xmlRaiseError: fix use of the structured callback channel
...
If the structured callback channel is initialized, do not perform
unneeded initialization of the old callback channel to avoid
clobbering of the structured callback channel's data.
2011-02-23 22:44:05 +08:00
Dmitry V. Levin
241d4a1069
__xmlRaiseError: fix the structured callback channel's data initialization
...
if we initialize the structured channel from the sax handler we should also
pass the userData
2011-02-23 22:30:59 +08:00
Dmitry V. Levin
1b9128bae7
__xmlRaiseError: remove redundant schannel initialization
...
In case the domain is XML_FROM_VALID, ctxt and schannel are already initialized
earlier with the same data
2011-02-23 22:23:25 +08:00
Dmitry V. Levin
111d705c28
__xmlRaiseError: do cheap code check early
...
if error code is XML_ERR_OK return immediately
2011-02-23 22:14:19 +08:00
Rob Richards
c794eb5bb0
Fix memory corruption
...
when xmlParseBalancedChunkMemoryInternal is called from xmlParseBalancedChunk
2011-02-18 12:17:17 -05:00
Daniel Veillard
fec31bcd45
Small fix for previous commit
2010-11-18 11:07:24 +01:00
Daniel Veillard
df83c17e5a
Fix a potential freeing error in XPath
2010-11-17 14:12:14 +01:00
Daniel Veillard
ae874211d4
634846 Remove a linking option breaking Windows VC10
...
as pointed out by David Connet <dcon@agilityrecordbook.com >
2010-11-17 14:10:39 +01:00
Andrew W. Nosenko
d794a84a9e
599241 fix an initialization problem on Win64
...
as the thread_t is not an integral datatype on that platform
2010-11-15 13:00:29 +01:00
Daniel Veillard
0cbeb50ee0
Fix a potential memory access error
...
in case of a previus allocation error
2010-11-15 12:10:14 +01:00
Rob Richards
364e3d2b05
fix win build
2010-11-10 10:13:51 -05:00
Daniel Veillard
0081987765
Reactivate the shared library versionning script
2010-11-04 21:53:14 +01:00
Daniel Veillard
4c2e7c651f
Release of libxml2-2.7.8
v2.7.8
2010-11-04 18:35:57 +01:00
Daniel Veillard
82143f4e2a
595789 fix a remaining potential Solaris problem
2010-11-04 17:55:41 +01:00
Giuseppe Iuculano
48f7dcb724
480323 add code to plug in ICU converters by default
...
This is not configured in by default but after some serious massaging
incorporate that patch from Chromium/Chrome.
2010-11-04 17:42:42 +01:00
LRN
fbd4ddf226
607273 Fix python detection on MSys/Windows
...
Fix the lookup for python executable and headers, add an
extra variable for new dependancies when linking for Python
on Win32
2010-11-04 15:45:46 +01:00