Nick Wellnhofer
bf5fcf6e64
xpath: Use separate static hash table for standard functions
...
This avoids registering standard functions when creating an XPath
context.
Lookup of extension functions is a bit slower now, but ultimately, all
function lookups should be moved to the compilation phase.
2024-12-21 16:55:35 +01:00
Nick Wellnhofer
0dd910e82b
save: Fix handling of catastrophic errors
...
Don't overwrite catastrophic errors xmlSaveErr.
Overwrite non-catastrophic errors in xmlOutputBufferClose.
2024-12-19 02:30:36 +01:00
Nick Wellnhofer
72f84dd739
fuzz: Inject IO failures into serialization code
2024-12-17 22:21:34 +01:00
Nick Wellnhofer
0160076f39
save: Forward error from closing IO in xmlSaveFinish
2024-12-17 21:57:16 +01:00
Nick Wellnhofer
169857ad26
xmllint: Check return value of htmlNewParserCtxt
2024-12-13 18:07:03 +01:00
Nick Wellnhofer
1e1b48918c
parser: Also raise error if ctxt is NULL
...
Update global error variable even if context is missing because of an
invalid (NULL) argument.
2024-12-13 17:57:11 +01:00
Nick Wellnhofer
6548ba11b8
parser: Fix argument checks in xmlCtxtParse*
...
- Raise invalid argument error.
- Free input stream if ctxt is NULL.
2024-12-13 17:57:11 +01:00
Nick Wellnhofer
9c980d000d
gitlab-ci: Stop including gnome-release-service-ci-templates
...
This raises a "not found or access denied" error now.
2024-12-13 12:41:46 +01:00
Nick Wellnhofer
0c7727519f
cmake: Completely remove deprecated options
...
- LIBXML2_WITH_AUTOMATA
- LIBXML2_WITH_EXPR
- LIBXML2_WITH_UNICODE
2024-12-13 12:40:04 +01:00
Nick Wellnhofer
e6045ed754
reader: Add argument checks
2024-12-13 12:39:52 +01:00
Nick Wellnhofer
49164610a4
reader: Forward catastrophic errors from XInclude
2024-12-13 12:39:44 +01:00
Nick Wellnhofer
8139ad2f77
fuzz: Fix IO error check in reader fuzzer
2024-12-13 12:39:34 +01:00
Nick Wellnhofer
7a9728c177
gitlab-ci: Re-add llvm
...
This reverts commit d09b07d1b9 .
Document why some packages are needed.
2024-12-10 21:43:37 +01:00
Nick Wellnhofer
d09b07d1b9
gitlab-ci: Remove llvm from CI container
...
Untested, but shouldn't be required anymore.
2024-12-10 18:44:26 +01:00
Nick Wellnhofer
5505d23545
Fix typo
2024-12-10 00:40:36 +01:00
Nick Wellnhofer
5ca4ce6fc0
gitlab-ci: Add "dist" job to build distribution tarball
...
Prepare for GNOME Release Service.
2024-12-09 23:28:38 +01:00
Nick Wellnhofer
225e0229dc
autotools: Add html5ent.inc to EXTRA_DIST
2024-12-09 23:28:02 +01:00
Nick Wellnhofer
8d9c359a01
gitlab-ci: Add xz-utils for distribution tarballs
2024-12-09 23:17:55 +01:00
Nick Wellnhofer
5c9abbf831
SAX2: Fix xmlSAX2ResolveEntity if systemId is NULL
...
Passing a NULL systemId results in snprintf("%s", NULL) which crashes on
some platforms. Regressed with commit 4ff2dccf .
Note that systemId should never be NULL during normal parsing. It can
only be NULL if API functions are called with a NULL systemId.
Should fix #825 .
2024-12-09 17:38:38 +01:00
Nick Wellnhofer
92204112ec
cmake: Always build Python module as shared library
2024-12-07 15:12:15 +01:00
Nick Wellnhofer
7ca75b321f
python: Declare init func with PyMODINIT_FUNC
2024-12-07 15:12:15 +01:00
Nick Wellnhofer
3b38f19b40
fuzz: Silence more OOM errors
2024-11-26 14:30:54 +01:00
Nick Wellnhofer
9f652e57c1
fuzz: Inject IO failures
...
We use the same counter for injecting malloc and IO failures. This
mostly renames several functions and variables.
2024-11-26 14:30:54 +01:00
Nick Wellnhofer
754843abda
fuzz: Remove xmlFuzzEntityLoader
...
Unused after commit de0c7791 .
2024-11-26 14:30:54 +01:00
Nick Wellnhofer
eae9a1bd8b
parser: Pop input stream in xmlCtxtValidateDtd
2024-11-26 14:30:54 +01:00
Nick Wellnhofer
5204c872bb
valid: Reset context before validating
...
Reset last error and "stopped" flag. Otherwise new errors could be
ignored.
2024-11-26 14:30:54 +01:00
Nick Wellnhofer
70cce2ece3
parser: Make XML_ERR_RESOURCE_LIMIT non-catastrophic
2024-11-26 14:20:25 +01:00
Nick Wellnhofer
dafcefb228
parser: Fail on catastrophic errors in recovery mode
2024-11-26 00:47:48 +01:00
Nick Wellnhofer
d3a7075462
xinclude: Fix handling of catastrophic errors
...
- Forward catastrophic errors from parser
- Don't overwrite catastrophic errors
2024-11-26 00:47:48 +01:00
Nick Wellnhofer
57087e5fc7
parser: Don't overwrite catastrophic errors
...
Stop reporting errors after a catastrophic error.
Also make sure that ctxt->errNo matches ctxt->lastError.code.
2024-11-26 00:47:48 +01:00
Nick Wellnhofer
5737466a31
cmake: Only link with winsock2 if HTTP is enabled
2024-11-23 15:49:04 +01:00
Nick Wellnhofer
d4fc7b7065
cmake: Fix indentation in libxml2-config.cmake.in
2024-11-23 15:43:26 +01:00
Nick Wellnhofer
ec909ed27e
example: Fix indentation in icu.c, mention in NEWS
2024-11-23 15:40:44 +01:00
Saleem Abdulrasool
4e27bbddfa
build: add missing Bcrypt link on Windows
...
When building on Windows, we must link against `Bcrypt` to satisfy the
use of `BCryptGenRandom`. Add this to the link interface in CMake to
allow use of libxml2 as a static library.
2024-11-22 15:48:07 -08:00
Nick Wellnhofer
9cd4748799
doc: Add example for ICU with xmlCtxtSetCharEncConvImpl
...
See #819 .
2024-11-22 19:51:32 +01:00
Nick Wellnhofer
2ef1beb38b
cmake: Fix compatibility in package version file
...
See https://github.com/microsoft/vcpkg/issues/42315
2024-11-22 18:52:24 +01:00
Nick Wellnhofer
de47847293
build: Remove unused variables
2024-11-22 01:54:28 +01:00
Nick Wellnhofer
e9d941f942
cmake: Only build required source files
2024-11-21 23:43:23 +01:00
Nick Wellnhofer
799104defb
build: Schema doesn't require XPath anymore
2024-11-21 23:43:23 +01:00
Nick Wellnhofer
1dc5e50a8e
catalog: Only use XML_SYSCONFDIR if catalogs are enabled
2024-11-21 23:43:23 +01:00
Nick Wellnhofer
52afde07c1
build: Only build xmlcatalog executable if enabled
2024-11-21 23:43:23 +01:00
Nick Wellnhofer
a5764b56d2
build: Define XML_SYSCONFDIR in config.h
...
Rename SYSCONFDIR macro to XML_SYSCONFDIR.
Use AX_RECURSIVE_EVAL with Autotools. This is GPL v2 with Autoconf
exception which shouldn't be a problem.
Finally support meson.
2024-11-21 22:44:02 +01:00
Nick Wellnhofer
0dc26910c1
parser: Deprecate more internal functions
2024-11-21 22:31:20 +01:00
Nick Wellnhofer
a227a71ac9
regexp: Deprecate internal functions
2024-11-20 17:03:11 +01:00
Nick Wellnhofer
84a6eece62
parser: Remove unneeded call to xmlDetectEncoding
2024-11-19 00:25:23 +01:00
Nick Wellnhofer
497081baab
parser: Remove remaining calls to xml{Push|Pop}Input
2024-11-19 00:25:23 +01:00
Nick Wellnhofer
0f4f89005d
parser: Rename inputPush to xmlCtxtPushInput
2024-11-19 00:25:23 +01:00
Nick Wellnhofer
e2ad249c23
parser: Deprecate more internal symbols
...
- xmlParseExternalSubset
- xmlPushInput
- xmlPopInput
- xmlCopyCharMultiByte
- xmlCreateEntityParserCtxt
- xmlStringComment
2024-11-19 00:25:23 +01:00
Nick Wellnhofer
2fcdc5f7e7
globals: More comments on future directions
2024-11-19 00:08:39 +01:00
Nick Wellnhofer
4d1f35b0a9
valid: Deprecate more internal functions
2024-11-19 00:03:37 +01:00