1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2026-01-26 21:41:34 +03:00
Commit Graph

7377 Commits

Author SHA1 Message Date
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
Nick Wellnhofer
fc4adba90e error: Fix initGenericErrorDefaultFunc compatibility macro 2025-04-12 16:26:07 +02:00
Nick Wellnhofer
97ffa77d6d encoding: Deprecate non-thread-safe functions 2025-04-10 17:36:58 +02:00
Nick Wellnhofer
b8018afa4c html: Fix documentation of parser options 2025-04-10 16:36:03 +02:00
Nick Wellnhofer
2ecc08f6dc html: Deprecate more functions 2025-04-10 16:36:03 +02:00
Benjamin Gilbert
ef73541a5a meson: don't link with pthreads on Windows
dependency('threads') always produces '-pthread' on GNU-like linkers, even
on Windows where we use Win32 thread primitives instead.
2025-04-05 15:35:21 -04:00
Nick Wellnhofer
8966731884 cmake, meson: Fix Darwin versions 2025-04-04 15:07:50 +02:00
Nick Wellnhofer
151c0f795d cmake, meson: Align Darwin version info with Autotools 2025-04-04 12:48:28 +02:00
Nick Wellnhofer
0aa87d85ff globals: Fix --with-thread-alloc build 2025-04-04 12:48:20 +02:00
Lovell Fuller
88732cae7d meson: ensure relaxng option supports minimum option 2025-04-04 11:26:10 +01:00
Nick Wellnhofer
39c5e09da7 fuzz: Use lint.dict for XInclude fuzzer
lint.dict also contains useful XPath fragments. We still need a special
dictionary for XInclude.
2025-04-03 13:23:07 +02:00
Nick Wellnhofer
def3674c58 xinclude: Fix memory leak with namespace nodes
Abort instead of setting nodeset elements to NULL. Fixes leak of
namespace nodes and avoids extraneous error messages.
2025-04-03 11:59:22 +02:00
Nick Wellnhofer
eb0c98ebd0 autotools: Add comment regarding libtool versioning 2025-03-31 16:58:00 +02:00
Nick Wellnhofer
2c2578b6fe io: Use switch statement in xmlIOErr 2025-03-31 13:10:00 +02:00
Collin Funk
fa539305fa io: Remove duplicated conditionals. 2025-03-31 11:05:27 +00:00
Nick Wellnhofer
5964fb7c5f xmllint: Fix --html --sax element callbacks
We need the non-namespace callbacks for HTML.
2025-03-30 15:00:28 +02:00
ThomasK
339e10feac Eliminate removed objects 2025-03-28 22:42:01 +00:00
ThomasK
40b73eebbb Update configure.js to support relax ng options and look for version in new location 2025-03-28 22:40:08 +00:00
Nick Wellnhofer
a5c4a6efe7 parser: Fix XML_PARSE_NOBLANKS dropping non-whitespace text
Regressed with 1f5b5371.

Fixes #884.
2025-03-28 16:52:34 +01:00
Nick Wellnhofer
a6398ab696 meson: Fix build from tarball
Include xml2-config-meson in EXTRA_DIST.

Fixes #883.
2025-03-28 09:08:13 +01:00
Nick Wellnhofer
19de8b47b1 cmake: Remove version from Python libxml2mod.so
This shouldn't be necessary and matches the Autotools build.
2025-03-27 23:07:49 +01:00
Nick Wellnhofer
2dd514078e cmake, meson: Change library filename to libxml2.so.16.0.0
We have to follow Autotools here.

Fixes #882.
2025-03-27 23:07:49 +01:00
Nick Wellnhofer
81c09e3336 gitlab-ci: Don't hardcode release version
Thanks to Jan Tojnar who found a work-around:

https://gitlab.gnome.org/GNOME/calls/-/merge_requests/770

This uses the artifacts:reports:dotenv feature to pass environment
variables to the deploy stage:

https://docs.gitlab.com/ci/variables/#pass-an-environment-variable-to-another-job

I didn't test the change with the sandbox yet.
2025-03-27 20:27:35 +01:00
Nick Wellnhofer
dade63971f Bump version 2025-03-27 15:51:13 +01:00