1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-02-22 21:57:21 +03:00

4135 Commits

Author SHA1 Message Date
Javier Jardón
05fd0285bf autogen.sh: Fix typo 2012-04-02 17:39:26 +01:00
Daniel Veillard
72789ef21f Do not use unsigned but unsigned int
as this breaks the API generator
2012-04-02 17:52:20 +08:00
Daniel Veillard
4aa68abb1c Try to fix a problem with entities in SAX mode
this is a problem which hit the raptor code and that small
patch should be a reliable workaround
2012-04-02 17:50:54 +08:00
Daniel Veillard
d95b689fd9 Fix portability failure if netdb.h lacks NO_ADDRESS 2012-04-02 17:48:53 +08:00
Daniel Veillard
ac17e5939c Remove two references to u_short 2012-04-02 15:45:13 +08:00
Daniel Veillard
bdc64d6d5f Fix a crash with xmllint --path on empty results
If the returned node set is empty, it is possible for the nodetab
to be null
2012-03-27 14:41:37 +08:00
Noam Postavsky
1579499025 add function xmlTextReaderRelaxNGValidateCtxt()
Since there is xmlTextReaderSchemaValidateCtxt() it seems like there
should be an equivalent RelaxNG function. The attached patch adds it.
The code is essentially the same as Schema implementation, but I'm
uncertain as to how to add things to the documentation and test suite:
there seems to be a lot of auto-generation going on.
2012-03-22 10:32:11 +08:00
Rob Richards
2d84ea149b Fix windows build from lzma addition 2012-03-21 10:37:06 -04:00
Daniel Mustieles
fabbca8c16 Fixed bug #617016 2012-03-19 21:42:00 +01:00
Daniel Mustieles
bde9c353fb Fixed bug #667946 2012-03-19 21:39:58 +01:00
Daniel Neel
38812b6fca Fixed two typos in the README document
Changes should be self-explanatory by viewing the diff
2012-03-16 15:12:25 -04:00
Nico Weber
cedf84d35a Fix -Wempty-body warning from clang
clang recently grew a warning on `for (...);`. This patch
fixes all two instances of this pattern in libxml. The changes
don't modify the code semantic.
2012-03-05 16:36:59 +08:00
Ryan Sleevi
5cf1deb080 Fix a logic error in Schemas Component Constraints 2012-02-29 10:56:32 +08:00
Nico Weber
aae48e64df Fix a wrong enum type use in Schemas Types 2012-02-29 09:44:35 +08:00
Daniel Veillard
16d3a61880 Add --system support to autogen.sh 2012-02-29 09:34:32 +08:00
Daniel Veillard
8973d58b74 Add hash randomization to hash and dict structures
Following http://www.ocert.org/advisories/ocert-2011-003.html
it seems that having hash randomization might be a good idea
when using XML with untrusted data
* configure.in: lookup for rand, srand and time
* dict.c: add randomization to dictionaries hash tables
* hash.c: add randomization to normal hash tables
2012-02-13 11:11:01 +08:00
Daniel Veillard
adf5ec9496 Cleanups of lzma support
- fix inclusion of the separated file
- use namespaced name for the 4 non-static routines
- add padding after external structures included in-situ
- add new requirement to spec file
- general cleanup of code
2012-01-27 22:19:53 +08:00
Anders F Bjorklund
48a305f522 add generated html files 2012-01-27 22:19:53 +08:00
Anders F Bjorklund
0755b66266 included xzlib in dist 2012-01-27 22:19:53 +08:00
Anders F Bjorklund
6bdc774350 move xz/lzma helpers to separate included files 2012-01-27 22:19:52 +08:00
Anders F Bjorklund
ebbbedac55 add generated devhelp files 2012-01-27 22:19:52 +08:00
Anders F Bjorklund
6703148cea add XML_WITH_LZMA to api 2012-01-27 22:19:52 +08:00
Anders F Bjorklund
eae5261779 add lzma compression support 2012-01-27 22:19:52 +08:00
Colin Walters
ca03efc4bf autogen: Only check for libtoolize
The system /usr/bin/libtool may not be in all installations.
2012-01-27 07:08:40 -05:00
Daniel Veillard
1c989278d9 Fix SAX2 builder in case of undefined attributes namespace
To follow the early XML-1.0 REC, the new localname is "prefix:localname"
and there is obviously now namespace.
2012-01-26 19:43:06 +08:00
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 d7958b21e7f8c447a26bb2436f08402b2c308be4.
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