|
89fcae4d
|
2024-06-11T16:19:58
|
|
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.
|
|
ef8dc4f6
|
2024-06-11T14:58:55
|
|
schemas: Add callbacks for resource loader
|
|
fa2592b3
|
2024-06-11T14:40:28
|
|
xinclude: Add callbacks for resource loader
|
|
886c427a
|
2024-06-11T14:04:38
|
|
c14n: Move some static xmlNs variables to the stack
Static variables aren't thread-safe.
|
|
fd7d9e5e
|
2024-06-11T14:47:03
|
|
reader: Add callbacks for resource loader
|
|
40b76eda
|
2024-06-11T12:54:12
|
|
relaxng: Add callbacks for resource loader
|
|
89743f8b
|
2024-06-11T11:34:48
|
|
test: Disable catalogs with xmlCatalogSetDefaults
Disable catalogs instead of tracking catalog allocations, simplifying
memory leak detection.
Also stop using xmlNoNetExternalEntityLoader.
|
|
64ad2725
|
2024-06-11T03:51:43
|
|
parser: Introduce per-context resource loader
|
|
b9d2f3c9
|
2024-06-11T02:15:18
|
|
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.
|
|
410931e3
|
2024-06-11T00:55:38
|
|
parser: Only set input ID for PE refs
Other input streams don't require IDs.
|
|
a3b2baeb
|
2024-06-11T00:52:04
|
|
parser: Simplify xmlNewInputFromFile
|
|
0b588387
|
2024-06-11T00:37:11
|
|
parser: Rework XML_PARSE_NONET handling
|
|
1b1e8b3c
|
2024-06-10T16:39:57
|
|
io: Stop invoking generic error handler for IO errors
|
|
ff3b0919
|
2024-06-11T00:00:32
|
|
parser: Implement XML_PARSE_NO_UNZIP option
|
|
1432949d
|
2024-06-10T23:57:52
|
|
io: Pass input flags to xmlParserInputBufferCreateUrl
|
|
b5890cb4
|
2024-06-10T18:51:56
|
|
io: Remove xmlParserInputBufferCreateFilenameSafe
|
|
a331526c
|
2024-06-10T16:21:12
|
|
io: Don't report write errors twice
|
|
717f3a7b
|
2024-06-10T18:50:28
|
|
io: Fix resetting xmlParserInputBufferCreateFilename hook
We don't want to invoke the default function.
|
|
47cbb6bb
|
2024-06-10T14:04:00
|
|
doc: Don't mention xmlNewInputURL
|
|
b46decdf
|
2024-06-12T15:58:36
|
|
Bump version
|
|
cdd2575f
|
2024-06-12T15:45:38
|
|
Release v2.13.0
|
|
d5523d27
|
2024-06-12T15:37:17
|
|
Update NEWS
|
|
7a94fd0b
|
2024-06-12T13:35:20
|
|
doc: Update documentation
|
|
d3fafde7
|
2024-06-12T13:33:05
|
|
test: Update testapi.c
|
|
4467b891
|
2024-06-12T13:32:32
|
|
Add missing argument checks for new API functions
|
|
8318b5a6
|
2024-06-09T14:22:53
|
|
parser: Fix NULL checks for output arguments
|
|
f2270863
|
2024-06-06T13:42:03
|
|
meson: convert boolean options to feature option
Simpler. Seems like they're only disabled by minimum.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
|
ed3e53de
|
2024-06-06T10:50:19
|
|
meson: Pass LIBXML_STATIC in dependency
|
|
afe8f845
|
2024-06-07T00:01:16
|
|
runtest: Work around broken EUC-JP support in musl iconv
Should fix #728.
|
|
0d0cb4c2
|
2024-06-06T23:07:16
|
|
runtest: Check for IBM-1141 encoding handler
Should fix #729.
|
|
0cde1b78
|
2024-06-06T23:50:03
|
|
parser: Fix "Truncated multi-byte sequence" error
Don't raise the error if decoding failed.
|
|
02cbb2b6
|
2024-06-06T23:09:17
|
|
runtest: Suppress undeclared entity errors
|
|
1ae68e40
|
2024-06-06T22:55:15
|
|
python: Fix build with disabled modules
|
|
15ed7566
|
2024-06-06T22:18:05
|
|
xinclude: Fix warning when building --without-xptr
|
|
e2919516
|
2024-06-06T19:28:23
|
|
xmllint: Fix build --with-valid --without-html
|
|
122b6130
|
2024-06-04T16:33:02
|
|
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.
|
|
897c73fe
|
2024-06-05T17:43:32
|
|
Add missing _cplusplus processing clause
|
|
16d914a9
|
2024-06-03T17:09:17
|
|
meson: fix compilation with local binaries
threads_dep is needed for runtest.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
|
4b2f250a
|
2024-05-03T13:11:47
|
|
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>
|
|
0160127f
|
2024-05-01T13:07:52
|
|
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>
|
|
a7e26707
|
2024-06-03T14:04:44
|
|
parser: Don't overwrite OOM errors in xmlSBuf
|
|
f0d89158
|
2024-06-01T15:41:43
|
|
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.
|
|
5198de4b
|
2024-05-31T13:42:08
|
|
fuzz: Make allocation in xmlBuildQName more likely
Limit size of static buffer in fuzzing mode.
|
|
11cd18d8
|
2024-05-31T13:31:09
|
|
valid: Check return value of xmlValidBuildAContentModel
Fixes return code in case of malloc failure.
|
|
ec09909d
|
2024-05-29T13:47:37
|
|
autotools: Fix pthread detection on FreeBSD
pthread_join is defined by libc, so check for pthread_create instead.
Should fix #725.
|
|
b7f30bae
|
2024-05-28T22:26:18
|
|
fuzz: Fix aarch64 build on OSS-Fuzz
|
|
e349709a
|
2024-05-21T21:07:16
|
|
build: Remove --with-fexceptions configuration option
|
|
f524993e
|
2024-05-21T20:56:55
|
|
build: Clean up configuration options
Remove run-debug from meson. Fix documentation.
|
|
11ce63f0
|
2024-05-21T20:38:52
|
|
build: Don't check for isascii
|
|
6f2a5973
|
2024-05-21T20:37:03
|
|
build: Don't check for uint32_t
|
|
5c9e0ebe
|
2024-05-21T20:27:45
|
|
autotools: Change ICU message
Only log non-default actions.
|
|
54629e0f
|
2024-05-21T20:25:23
|
|
autotools: Remove --with-coverage configuration option
|
|
e80f27fc
|
2024-05-21T18:37:57
|
|
build: Don't check for inttypes.h
This header isn't used.
|
|
dda69626
|
2024-05-21T18:31:37
|
|
autotools: Only check for networking headers if required
|
|
1371d0bd
|
2024-05-21T00:01:13
|
|
Update NEWS
|
|
bd7cafdb
|
2024-05-20T23:46:37
|
|
meson: Add some TODO comments
|
|
3018842c
|
2024-05-20T23:51:01
|
|
build: Disable HTTP support by default
|
|
5b1d7ff0
|
2024-05-20T22:51:44
|
|
parser: Remove redefinitions for legacy globals
|
|
e75e878e
|
2024-05-20T13:58:22
|
|
doc: Update and fix documentation
|
|
9523438a
|
2024-05-20T13:56:47
|
|
doc: Allow missing author
|
|
a800e003
|
2024-05-20T13:54:09
|
|
doc: Allow missing desc if we have a retdesc
Allow missing function descriptions if the return value is documented.
|
|
b47a95fe
|
2024-05-20T13:10:41
|
|
parser: Don't make xmlCtxtErrIO public
|
|
caa8bb38
|
2024-05-19T19:31:54
|
|
fuzz: Move back to xmlSetExternalEntityLoader
xmlParserInputBufferCreateFilenameDefault can't report malloc failures.
|
|
4fefba4c
|
2024-05-15T17:52:20
|
|
parser: Rework handling of undeclared entities
Throw an error if entity substitution was requested.
Now we only downgrade to a warning if
- XML_PARSE_DTDLOAD wasn't specified, and
- entity aren't substituted or XML_PARSE_NO_XXE was specified.
Should fix #724.
|
|
51b5d1e3
|
2024-05-15T16:09:05
|
|
fuzz: Don't enable zlib and liblzma with MSan
We'd need our own instrumented builds of these libraries.
|
|
f895af09
|
2024-05-14T16:08:37
|
|
fuzz: Remove OSS-Fuzz timeout option
Custom timeouts aren't fully supported on OSS-Fuzz.
|
|
ec2f68f1
|
2024-05-14T15:58:44
|
|
parser: Report malloc failure in xmlNewInputFromFile
|
|
8d215ac5
|
2024-05-14T15:55:18
|
|
xpath: Fix quadratic runtime accounting
|
|
59254626
|
2024-05-14T12:08:17
|
|
threads: Deprecate remaining ThrDef functions
|
|
b117a912
|
2024-05-13T13:42:43
|
|
fuzz: Enable xmllint fuzzer on OSS-Fuzz
|
|
0651ad66
|
2024-05-05T20:20:22
|
|
valid: Report malloc failure after xmlRegExecPushString
|
|
609d2666
|
2024-05-01T23:46:46
|
|
Stop defining _REENTRANT
This macro is obsolete, see `man feature_test_macros`.
|
|
b3cb41be
|
2024-05-13T12:18:08
|
|
fuzz: Add xmllint fuzzer
|
|
16fb1028
|
2024-05-10T12:00:12
|
|
reader: Fix error reporting with walker
Abort earlier in xmlTextReaderRead if an error was raised.
|
|
a846719b
|
2024-05-10T11:21:11
|
|
pattern: Fix memory leak xmlCompileStepPattern
|
|
4ff2dccf
|
2024-05-10T02:04:52
|
|
SAX2: Warn if URI resolution failed
|
|
4fe116eb
|
2024-05-10T00:05:44
|
|
parser: Don't report error on invalid URI
Only fragment identifiers are an error.
This removes the last user of xmlErrMsg*. Now every error reported by
the parser should result in one of ctxt->wellFormed, ctxt->nsWellFormed
or ctxt->valid being set to zero.
|
|
3dea98ef
|
2024-05-09T21:10:28
|
|
xmllint: Don't free DTD with --dropdtd
Entity references point to entities in the DTD, so only unlink the DTD
and don't destroy it.
|
|
3ad7f816
|
2024-05-08T11:49:31
|
|
[CVE-2024-34459] Fix buffer overread with `xmllint --htmlout`
Add a missing bounds check.
Fixes #720.
|
|
c83147bf
|
2024-05-08T03:04:15
|
|
xmllint: Fix --pedantic option
Regressed in 74c84a8c.
|
|
3665d667
|
2024-05-07T16:53:43
|
|
xmllint: Clean up option handling
Remove unnecessary globals and make some local.
Remove unnecessary calls to xmlTextReaderSetParserProp.
Remove unused "oldout" code.
Fix skipArgs.
|
|
f8ff4d86
|
2024-05-07T15:23:03
|
|
xmllint: Rework parsing
Merge a few code paths, making options like --valid or --htmlout work
with some other options.
Improve error handling.
|
|
0bef1704
|
2024-05-07T12:15:24
|
|
c14n: Fix memory leak after malloc failure
|
|
5bfaab77
|
2024-05-06T18:03:01
|
|
fuzz: Fix reader fuzzer
|
|
72e9267c
|
2024-05-06T11:36:25
|
|
html: Fix memory leak after malloc failure
|
|
3afaff7e
|
2024-05-06T11:16:01
|
|
xmllint: Check for NULL input in xmlHTMLValidityError
`ctxt->input` can be NULL after commit 61b4c42f.
|
|
ef6e6012
|
2024-05-06T01:13:49
|
|
xmllint: Fix parsing of maxmem option
Fix corner cases like 'xmllint --encode --maxmem 123'.
Also fixes --path without LIBXML_VALID_ENABLED.
|
|
907a5a48
|
2024-05-06T02:34:01
|
|
xmllint: Fix memory leak in walkDoc
|
|
a7854e26
|
2024-05-06T01:30:18
|
|
http: Don't pass NULL pointer as memcpy source
|
|
f4826c84
|
2024-05-06T00:33:19
|
|
xmllint: Add macro for error stream
Prepare for fuzzing.
|
|
d644a23e
|
2024-05-05T23:37:03
|
|
fuzz: Improve xml.dict
- Add standalone declaration
- Add doctype declaration
- Expand ATTLIST matrix in xml.dict
|
|
826baf00
|
2024-05-06T00:29:07
|
|
xmllint: Fix --insert option
Make sure that parent is an element when calling
xmlValidGetValidElements.
|
|
20a0de95
|
2024-05-06T00:08:54
|
|
xmllint: Fix --pushsmall option
This is only a debugging aid but also useful when fuzzing.
|
|
81611e06
|
2024-05-05T18:16:44
|
|
reader: Don't call xmlCtxtErrMemory with NULL ctxt
This can happen in "walker" mode.
|
|
a39e862b
|
2024-05-05T18:16:11
|
|
xmllint: Add explicit cast for -fsanitize=integer
|
|
a4c2b723
|
2024-05-05T17:26:31
|
|
io: Don't set close callback in xmlParserInputBufferCreateFd
|
|
422ae462
|
2024-05-05T15:20:15
|
|
xmllint: Make some strings const
|
|
71a7a33e
|
2024-05-03T00:44:42
|
|
parser: Fix base URI of internal parameter entities
Search parent inputs of internal parameter entities for base URI.
Fixes a long-standing bug, which manifested in a different way after
commit 955c177f. Reproduce with
xmllint --noent xmlconf/eduni/errata-2e/E18.xml
|
|
fdc5ff36
|
2024-05-02T16:23:04
|
|
parser: Always throw entity errors if external DTD is loaded
When parsing with XML_PARSE_DTDLOAD, missing entities are always an
error.
Also consolidate behavior when validating. See b717abdd.
|
|
39e5b35b
|
2024-05-02T22:06:19
|
|
parser: Don't create undeclared entity refs in substitution mode
We never want to create entity reference nodes if entity substitution
is enabled. This also applies to undeclared entities.
|