Nick Wellnhofer
116d8c0166
fuzz: Move to per-context resource loader
2024-06-12 16:36:12 +02:00
Nick Wellnhofer
89fcae4dfd
parser: Don't report malloc failures when creating context
...
We don't want messages to stderr before an error handler could be set on
a parser context.
2024-06-12 16:36:12 +02:00
Nick Wellnhofer
ef8dc4f673
schemas: Add callbacks for resource loader
2024-06-12 16:36:12 +02:00
Nick Wellnhofer
fd7d9e5eca
reader: Add callbacks for resource loader
2024-06-12 16:36:12 +02:00
Nick Wellnhofer
fa2592b384
xinclude: Add callbacks for resource loader
2024-06-12 16:36:12 +02:00
Nick Wellnhofer
886c427ab7
c14n: Move some static xmlNs variables to the stack
...
Static variables aren't thread-safe.
2024-06-12 16:36:12 +02:00
Nick Wellnhofer
40b76edac4
relaxng: Add callbacks for resource loader
2024-06-12 16:36:12 +02:00
Nick Wellnhofer
89743f8b0c
test: Disable catalogs with xmlCatalogSetDefaults
...
Disable catalogs instead of tracking catalog allocations, simplifying
memory leak detection.
Also stop using xmlNoNetExternalEntityLoader.
2024-06-12 16:36:12 +02:00
Nick Wellnhofer
64ad272525
parser: Introduce per-context resource loader
2024-06-12 16:22:52 +02:00
Nick Wellnhofer
b9d2f3c911
parser: Introduce new input API
...
- xmlInputCreateUrl
- xmlInputCreateMemory
- xmlInputCreateString
- xmlInputCreateFd
- xmlInputCreateIO
- xmlInputSetEncoding
These functions don't take a parser context and work on xmlParserInputs,
replacing functions working on xmlParserInputBuffers.
xmlInputCreateUrl and xmlInputSetEncoding offer fine-grained error
handling.
Several XML_INPUT_* flags offer additional control.
2024-06-12 16:22:52 +02:00
Nick Wellnhofer
410931e385
parser: Only set input ID for PE refs
...
Other input streams don't require IDs.
2024-06-12 16:22:52 +02:00
Nick Wellnhofer
a3b2baeb67
parser: Simplify xmlNewInputFromFile
2024-06-12 16:22:52 +02:00
Nick Wellnhofer
0b58838764
parser: Rework XML_PARSE_NONET handling
2024-06-12 16:22:52 +02:00
Nick Wellnhofer
ff3b091910
parser: Implement XML_PARSE_NO_UNZIP option
2024-06-12 16:14:15 +02:00
Nick Wellnhofer
1432949d3c
io: Pass input flags to xmlParserInputBufferCreateUrl
2024-06-12 16:14:15 +02:00
Nick Wellnhofer
b5890cb425
io: Remove xmlParserInputBufferCreateFilenameSafe
2024-06-12 16:14:15 +02:00
Nick Wellnhofer
1b1e8b3c12
io: Stop invoking generic error handler for IO errors
2024-06-12 16:14:15 +02:00
Nick Wellnhofer
a331526c8e
io: Don't report write errors twice
2024-06-12 16:07:20 +02:00
Nick Wellnhofer
717f3a7b21
io: Fix resetting xmlParserInputBufferCreateFilename hook
...
We don't want to invoke the default function.
2024-06-12 16:04:45 +02:00
Nick Wellnhofer
47cbb6bb3c
doc: Don't mention xmlNewInputURL
2024-06-12 16:04:45 +02:00
Nick Wellnhofer
b46decdfc9
Bump version
2024-06-12 15:58:36 +02:00
Nick Wellnhofer
cdd2575f7f
Release v2.13.0
v2.13.0
2024-06-12 15:45:38 +02:00
Nick Wellnhofer
d5523d27eb
Update NEWS
2024-06-12 15:37:17 +02:00
Nick Wellnhofer
7a94fd0ba6
doc: Update documentation
2024-06-12 13:57:21 +02:00
Nick Wellnhofer
d3fafde7de
test: Update testapi.c
2024-06-12 13:57:21 +02:00
Nick Wellnhofer
4467b89143
Add missing argument checks for new API functions
2024-06-12 13:57:20 +02:00
Nick Wellnhofer
8318b5a634
parser: Fix NULL checks for output arguments
2024-06-09 15:08:43 +02:00
Rosen Penev
f227086380
meson: convert boolean options to feature option
...
Simpler. Seems like they're only disabled by minimum.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-06-06 17:13:41 -07:00
Andrew Potter
ed3e53de0e
meson: Pass LIBXML_STATIC in dependency
2024-06-06 22:27:54 +00:00
Nick Wellnhofer
afe8f84514
runtest: Work around broken EUC-JP support in musl iconv
...
Should fix #728 .
2024-06-07 00:02:37 +02:00
Nick Wellnhofer
0cde1b78d6
parser: Fix "Truncated multi-byte sequence" error
...
Don't raise the error if decoding failed.
2024-06-07 00:02:31 +02:00
Nick Wellnhofer
02cbb2b64f
runtest: Suppress undeclared entity errors
2024-06-07 00:02:31 +02:00
Nick Wellnhofer
0d0cb4c2bd
runtest: Check for IBM-1141 encoding handler
...
Should fix #729 .
2024-06-07 00:02:31 +02:00
Nick Wellnhofer
1ae68e40df
python: Fix build with disabled modules
2024-06-06 22:55:15 +02:00
Nick Wellnhofer
15ed75664b
xinclude: Fix warning when building --without-xptr
2024-06-06 22:18:05 +02:00
Nick Wellnhofer
e2919516bc
xmllint: Fix build --with-valid --without-html
2024-06-06 19:28:23 +02:00
Nick Wellnhofer
122b61309f
parser: Fix performance regression when parsing namespaces
...
The namespace hash table didn't reuse deleted buckets, leading to
quadratic behavior.
Also ignore deleted buckets when resizing.
Fixes #726 .
2024-06-06 15:52:09 +02:00
Sadaf Ebrahimi
897c73fe24
Add missing _cplusplus processing clause
2024-06-06 09:40:18 +00:00
Rosen Penev
16d914a9f3
meson: fix compilation with local binaries
...
threads_dep is needed for runtest.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-06-03 17:20:10 -07:00
Rosen Penev
4b2f250a5b
meson: don't use dl dependency on old meson
...
dl dependency was introduced with version 0.62.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-06-03 14:33:52 -07:00
Rosen Penev
0160127fda
meson: fix usage as a subproject
...
include directories must be passed to that projects can use headers.
Also add override_dependencies to make sure that it's used when
available as a subproject.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-06-03 14:33:07 -07:00
Nick Wellnhofer
a7e26707be
parser: Don't overwrite OOM errors in xmlSBuf
2024-06-03 14:04:44 +02:00
Nick Wellnhofer
f0d891585d
entities: Unconst predefined entities
...
Partial revert of commit 63ce5f9a. For some reason, Chromium and WebKit
set the etype member of predefined entities. This should be fixed first.
2024-06-01 15:41:43 +02:00
Nick Wellnhofer
5198de4b1d
fuzz: Make allocation in xmlBuildQName more likely
...
Limit size of static buffer in fuzzing mode.
2024-05-31 13:42:08 +02:00
Nick Wellnhofer
11cd18d879
valid: Check return value of xmlValidBuildAContentModel
...
Fixes return code in case of malloc failure.
2024-05-31 13:31:09 +02:00
Nick Wellnhofer
ec09909dd3
autotools: Fix pthread detection on FreeBSD
...
pthread_join is defined by libc, so check for pthread_create instead.
Should fix #725 .
2024-05-29 13:47:37 +02:00
Nick Wellnhofer
b7f30bae7b
fuzz: Fix aarch64 build on OSS-Fuzz
2024-05-28 22:52:30 +02:00
Nick Wellnhofer
e349709ae7
build: Remove --with-fexceptions configuration option
2024-05-21 21:07:16 +02:00
Nick Wellnhofer
f524993e70
build: Clean up configuration options
...
Remove run-debug from meson. Fix documentation.
2024-05-21 21:05:32 +02:00
Nick Wellnhofer
11ce63f02b
build: Don't check for isascii
2024-05-21 20:40:30 +02:00