Nick Wellnhofer
bbd918b2e7
parser: Fix detection of null bytes
...
Also suppress misleading extra errors.
Fixes #122 .
2023-08-29 18:43:10 +02:00
Nick Wellnhofer
76c6da4209
error: Make sure that error messages are valid UTF-8
...
This has caused issues with the Python bindings for a long time.
Should fix #64 .
2022-12-04 23:34:19 +01:00
Nick Wellnhofer
de5b624f10
Fix handling of unexpected EOF in xmlParseContent
...
Readd the XML_ERR_TAG_NOT_FINISHED error on unexpected EOF which was
removed in commit 62150ed2 .
This commit also introduced a regression for direct users of
xmlParseContent. Unclosed tags weren't checked.
2021-05-08 20:47:36 +02:00
Nick Wellnhofer
62150ed2ab
Make xmlParseContent and xmlParseElement non-recursive
...
Split xmlParseElement into subfunctions. Use nameNsPush to store prefix,
URI and nsNr on the heap, similar to the push parser.
Closes #84 .
2019-09-23 17:45:50 +02:00
Daniel Veillard
4a5d80aded
Fix a bug in CData error handling in the push parser
...
For https://bugzilla.gnome.org/show_bug.cgi?id=754947
The checking function was returning incorrect args in some cases
Adds the test to teh reg suite and fix one of the existing test output
2015-09-18 15:06:46 +08:00