Nick Wellnhofer
75dde50b20
cmake: Fix installation directories in libxml2-config.cmake
...
Use AX_RECURSIVE_EVAL with Autotools and remove hack using parent
directories.
Fixes #898 .
2025-05-01 21:10:30 +02:00
Nick Wellnhofer
87b30343f6
io: Fix linkage of __xml*BufferCreateFilename functions
...
Make these functions usable on Windows.
2025-04-29 20:36:25 +02:00
Nick Wellnhofer
9419f6de61
meson: Install libxml2.py
...
Apparently, nobody has ever tried to use the Python bindings built with
Meson.
2025-04-29 18:03:05 +02:00
Nick Wellnhofer
01d1dabd83
cmake: Reenable testapi on Windows
...
Fixes #403 .
2025-04-27 13:01:42 +02:00
Nick Wellnhofer
fc8899d47c
parser: Make xmlCtxtGetValidCtxt depend on VALID_ENABLED
2025-04-27 13:01:42 +02:00
Nick Wellnhofer
af40ed75bc
tests: Rework testapi.c
...
Only test NULL and 0 arguments which is the only useful test from my
experience.
Use ElementTree instead of libxml2's own Python bindings in gentest.py.
Stop using the <cond> element in libxml2-api.xml. Look up modules
required by symbols using separate code in xmlmod.py, preparing for the
eventual removal of apibuild.py.
2025-04-27 13:01:42 +02:00
Nick Wellnhofer
177067ea5a
reader: Fix reading compressed data
...
Also make sure that functions that don't return error codes set the
global error.
2025-04-25 15:36:59 +02:00
Nick Wellnhofer
0bac84b1bd
Add missing NULL checks to public API functions
2025-04-25 13:15:29 +02:00
Nick Wellnhofer
72906f161c
parser: Make undeclared entities in XML content fatal
...
When parsing XML content with functions like xmlParseBalancedChunk or
xmlParseInNodeContext, make undeclared entities always a fatal error to
match 2.13 behavior.
This was deliberately changed in 4f329dc5 , probably to make the tests
pass.
Should fix #895 .
2025-04-25 13:15:29 +02:00
Nick Wellnhofer
097fe87f1b
gitlab-ci: Add --show-diff to PHP tests
...
Thanks to @nielsdos for the hint.
2025-04-23 17:58:34 +02:00
Nick Wellnhofer
8a791fdd2f
save: Fix xmlDocDump with encoding
...
Short-lived regression.
2025-04-21 18:00:56 +02:00
Nick Wellnhofer
71cc210477
autotools, cmake: Use SOABI for Python shared object
...
This requires Python3 with CMake.
Fixes #894 .
2025-04-21 12:16:55 +02:00
Nick Wellnhofer
78b123c662
save: Fix XML escape table
...
Regressed with 2adcde39 .
2025-04-21 00:51:32 +02:00
Nick Wellnhofer
5df94fc752
save: Remove unused struct members
2025-04-20 23:09:18 +02:00
Nick Wellnhofer
8c6c61653b
save: Rework encoding setup
...
Always set up encoding in xmlDocContentDumpOutput. Refactor and simplify
some code.
2025-04-20 23:09:18 +02:00
Nick Wellnhofer
936e3d529a
save: Fix xmlSave with NULL encoding
...
Regressed with cc45f618 .
2025-04-20 20:53:26 +02:00
Nick Wellnhofer
b85d77d156
http: Remove built-in HTTP client
...
Stubs are retained for ABI compatibility.
Fixes #631 .
Obsoletes #160 .
2025-04-20 18:21:06 +02:00
Nick Wellnhofer
85dce1800d
gitlab-ci: Readd gcc/autoconf job with Python
2025-04-20 14:31:20 +02:00
Nick Wellnhofer
134bda8284
gitlab-ci: Fetch git history for xmlstarlet
2025-04-19 19:00:38 +02:00
Nick Wellnhofer
70d18dde71
gitlab-ci: Add xmlstarlet to downstream tests
...
Use my private fork for now.
2025-04-19 18:08:28 +02:00
Nick Wellnhofer
adc7913dbc
gitlab-ci: Avoid redundant builds of libxml2 and libxslt
...
Build and install libxml2 and libxslt in a new "gcc-install" job and
publish the build as artifact. Make the downstream tests use the
artifact instead of building the libraries redundantly.
2025-04-19 17:17:57 +02:00
Nick Wellnhofer
9e3159d04c
parser: Never use XML catalogs when parsing HTML files
...
When loading HTML files we shouldn't try to resolve URIs using the XML
catalogs.
2025-04-19 14:52:14 +02:00
Nick Wellnhofer
2d8b6df28a
xmllint: Make --nocatalogs actually work
2025-04-19 14:52:14 +02:00
Nick Wellnhofer
ffc0bba93e
xmllint: Remove --htmlout option
...
Unlike the documentation suggests, this only printed error messages as
HTML which doesn't seem useful.
2025-04-19 14:52:14 +02:00
Nick Wellnhofer
dc4910c70a
xmllint: Remove --testIO option
2025-04-18 23:38:48 +02:00
Nick Wellnhofer
95ffa8d234
xmllint: Remove --debugent option
2025-04-18 23:38:48 +02:00
Nick Wellnhofer
7b5543bdbb
autotools: Remove unneeded $(ICONV_CFLAGS)
...
The public headers don't include iconv.h anymore.
2025-04-18 23:38:48 +02:00
Nick Wellnhofer
7d33f97f65
xmllint: Separate XML and HTML parser options
2025-04-18 23:38:48 +02:00
Nick Wellnhofer
094980ec08
fuzz: Make --pretty arg more likely to be valid
2025-04-18 18:48:25 +02:00
Nick Wellnhofer
7e1c2b9485
xmllint: Return error code instead of exiting in parseInteger
2025-04-18 18:48:25 +02:00
Nick Wellnhofer
4ba1f9238a
html: Avoid HTML_PARSE_HTML5 clashing with XML_PARSE_NOENT
...
There are several users that pass invalid XML parser options to the
HTML parser. Choose a value that is less likely to clash.
2025-04-18 18:48:25 +02:00
Nick Wellnhofer
6896f478d4
Revert "valid: Remove duplicate error messages when streaming"
...
This reverts commit cd220b93d8 .
This commit broke the xmstarlet tests.
2025-04-18 17:24:45 +02:00
Nick Wellnhofer
aa4ef7737b
parser: Deprecate output-related globals
2025-04-17 21:14:00 +02:00
Nick Wellnhofer
d8193b7af1
xmllint: Fix parsing of --pretty argument
2025-04-17 21:14:00 +02:00
Nick Wellnhofer
470bec654c
xmllint: Switch to xmlSaveSetIndentString
...
Stop using global xmlTreeIndentString.
2025-04-17 21:14:00 +02:00
Nick Wellnhofer
2e2b4c0f18
xmllint: Use xmlSave API to serialize HTML
2025-04-17 21:14:00 +02:00
Nick Wellnhofer
c132829c10
xmllint: Don't serialize to memory with --memory option
...
This is only useful for debugging.
2025-04-17 20:06:07 +02:00
Nick Wellnhofer
8dbf298cc5
xmllint: Fix harmless memory leaks
...
Fixes #892 .
2025-04-17 20:01:16 +02:00
Nick Wellnhofer
21b510bc62
gitlab-ci: Enable more build options for CMake/Meson jobs
2025-04-17 20:01:16 +02:00
Nick Wellnhofer
fa931566d2
build: Disable Python bindings by default
2025-04-17 20:01:16 +02:00
Nick Wellnhofer
487ee1d871
[CVE-2025-32415] schemas: Fix heap buffer overflow in xmlSchemaIDCFillNodeTables
...
Don't use local variable which could contain a stale value.
Fixes #890 .
2025-04-17 12:57:56 +02:00
Nick Wellnhofer
1039cd53bc
autotools: Remove remaining cruft from Makefile.am
2025-04-14 00:08:54 +02:00
Nick Wellnhofer
3899546aaa
meson: Consolidate host_os checks
2025-04-13 23:46:17 +02:00
Nick Wellnhofer
000e6afbf0
meson: Fix libdl detection fallback
...
Require dlopen, always set HAVE_DLOPEN.
2025-04-13 23:39:41 +02:00
Nick Wellnhofer
c7b1dd8675
doc: Separate xmllint debug options
2025-04-13 22:18:05 +02:00
Maks Verver
4d24aa22ac
python: Add a test to reproduce bug #889
2025-04-13 13:50:19 +02:00
Maks Verver
8d415b8911
[CVE-2025-32414] python: Read at most len/4 characters.
...
Fixes #889 by reserving space in the buffer for UTF-8 encoding of text.
2025-04-13 13:49:46 +02:00
Dan Yeaw
38cc2b53ed
python: Stop generating libxml2class.txt
2025-04-12 17:08:54 +02:00
Dan Yeaw
e26478545f
python: Fix file variable not defined during exception
2025-04-12 17:08:54 +02:00
Dan Yeaw
ffef921be3
python: Concat generated files in generator.py
2025-04-12 17:08:54 +02:00