4678 Commits

Author SHA1 Message Date
Sebastian Pipping
e043e27ce5 [REVERT ME] Debug check_c_compiler_flag with MSVC 2025-09-28 01:34:44 +02:00
Sebastian Pipping
1f879a1fce [REVERT ME] Drop most CI while experimenting 2025-09-28 01:04:39 +02:00
Sebastian Pipping
98b489d528
Merge pull request #1051 from Smattr/smattr/d5050d25-f03c-432f-866a-9c90224bc333
lib: swap `(size_t)(-1)` for C99 equivalent, `SIZE_MAX`
2025-09-26 17:09:16 +02:00
Sebastian Pipping
4575e52f83
Merge pull request #1061 from libexpat/prepare-release
Prepare release 2.7.3 (part of #1060, ETA 2025-09-24)
R_2_7_3
2025-09-24 21:20:27 +02:00
Sebastian Pipping
2ecaca811c Sync file headers 2025-09-24 17:15:16 +02:00
Sebastian Pipping
9ade0b0662 Set release date for 2.7.3 2025-09-24 17:15:16 +02:00
Sebastian Pipping
659d21fcc1 Bump version to 2.7.3 2025-09-24 17:02:39 +02:00
Sebastian Pipping
ecf7cf2181 Bump version info from 12:0:11 to 12:1:11
See https://verbump.de/ for what these numbers do
2025-09-24 17:02:39 +02:00
Sebastian Pipping
4942d4277a Changes: Document changes in release Expat 2.7.3 2025-09-24 17:02:39 +02:00
Sebastian Pipping
047428d38e Changes: Fix an out-of-sync pull request reference 2025-09-24 17:02:39 +02:00
Sebastian Pipping
181dd11f0c
Merge pull request #1062 from Smattr/smattr/97c6d6e9-a205-4ba5-93cb-f5cde2f2f78a
lib: Remove cast that truncates a `size_t` to an `unsigned`
2025-09-24 17:01:26 +02:00
Sebastian Pipping
0515ae4757
Merge pull request #1059 from berkayurun/master
Fix detection of asynchronous tags in entities
2025-09-24 16:03:22 +02:00
Berkay Eren Ürün
a9aaf85cfc tests: Add line/column checks to async entity tests 2025-09-24 10:07:12 +02:00
Sebastian Pipping
81a114f7ee tests: Cover XML_ERROR_ASYNC_ENTITY cases 2025-09-24 09:43:36 +02:00
Berkay Eren Ürün
ba80428c22 lib: Fix detection of asynchronous tags in entities
According to the XML standard, tags must be closed within the same
element in which they are opened. Since the change of the entity
processing method in version 2.7.0, violations of this rule have not
been handled correctly for entities.

This commit adds the required checks to detect any violations and
restores the correct behaviour.
2025-09-24 09:43:36 +02:00
Matthew Fernandez
58777f45ad lib: Remove cast that truncates a size_t to an unsigned
The source expression, `bytesToAllocate`, is a `size_t` and the type of the
corresponding parameter in the function it is being passed to is also `size_t`.
Thus this cast is redundant.

Note that this cast was not losing information. On platforms like x86-64,
`sizeof(unsigned) < sizeof(size_t)`. But `bytesToAllocate` is the result of a
call to `poolBytesToAllocateFor` here that can never return a value that would
overflow an `unsigned`.

The source of this seems to have been an oversight in
810b74e4703dcfdd8f404e3cb177d44684775143.
2025-09-23 21:07:45 -07:00
Sebastian Pipping
70ed324212
Merge pull request #1057 from libexpat/docs-reference-html-activation-thresholds
doc: Better integrate the effect of the activation thresholds
2025-09-23 15:02:23 +02:00
Sebastian Pipping
aa2e76d25a
Merge pull request #1056 from libexpat/docs-reference-html-first-column-zero
doc: Make it explicit that `XML_GetCurrentColumnNumber` starts at 0
2025-09-23 15:01:46 +02:00
Sebastian Pipping
2bf9fd5813
Merge pull request #1054 from libexpat/docs-reference-html-consistant-float-amplification
doc: Be consistant with use of floating point around `XML_SetAllocTrackerMaximumAmplification`
2025-09-23 15:01:21 +02:00
Sebastian Pipping
091c35786e
Merge pull request #1058 from Smattr/smattr/adc589ff-a1db-4ac4-9a43-f27586c7aa1d
fix “documnents” comment typo
2025-09-23 04:20:50 +02:00
Matthew Fernandez
bd9149594e fix “documnents” comment typo 2025-09-22 18:32:00 -07:00
Sebastian Pipping
b0b7c2b595 doc: Better integrate the effect of the activation thresholds 2025-09-23 02:22:38 +02:00
Sebastian Pipping
e918bb4a00 doc: Make it explicit that XML_GetCurrentColumnNumber starts at 0 2025-09-23 02:14:22 +02:00
Sebastian Pipping
42b83321b4 doc: Be consistant with float around XML_SetAllocTrackerMaximumAmplification 2025-09-23 00:31:33 +02:00
Sebastian Pipping
2e2c866437
Merge pull request #1053 from libexpat/xmlwf-resolve-use-of-deprecated-functions
`xmlwf`: Resolve use of functions `XML_GetErrorLineNumber` and `XML_GetErrorColumnNumber`
2025-09-22 23:12:10 +02:00
Sebastian Pipping
eaa4b4447c xmlwf: Resolve use of functions XML_GetErrorLineNumber and XML_GetErrorColumnNumber
They no longer exist and calling them only worked because of these alias macros:

$ git grep XML_GetError | grep -v XML_GetErrorCode
lib/expat.h:#  define XML_GetErrorLineNumber XML_GetCurrentLineNumber
lib/expat.h:#  define XML_GetErrorColumnNumber XML_GetCurrentColumnNumber
lib/expat.h:#  define XML_GetErrorByteIndex XML_GetCurrentByteIndex
2025-09-22 20:23:31 +02:00
Sebastian Pipping
cb5c8eaa20
Merge pull request #1048 from libexpat/issue-1046-fix-malloc-alignment
Fix alignment of internal allocations for some non-amd64 architectures (e.g. sparc32) (fixes #1046)
2025-09-22 16:44:22 +02:00
Sebastian Pipping
018daa3fb1
Merge pull request #1052 from libexpat/freebsd-15-0
CI: Upgrade to FreeBSD 15.0
2025-09-22 00:10:44 +02:00
Sebastian Pipping
9424c954c7 Revert "freebsd.yml: Downgrade to FreeBSD 14.3 to fix CI for the moment"
This reverts commit 8206f365fdb6fc7bf46ccc405419a9a880df56b1.
2025-09-21 20:02:16 +02:00
Sebastian Pipping
7923600a13 freebsd.yml: Bump vmactions/freebsd-vm to v1.2.4 2025-09-21 20:02:16 +02:00
Matthew Fernandez
168aed07ab lib: swap '(size_t)(-1)' for C99 equivalent, 'SIZE_MAX' 2025-09-21 09:19:53 -07:00
Sebastian Pipping
2c3849bc7e
Merge pull request #1050 from libexpat/cleanup-ubsan-fatality
Cleanup UBSan fatality (follow-up to #1047)
2025-09-20 22:26:47 +02:00
Sebastian Pipping
471fdf8aa2 fuzzing.yml: Clean up and document UBSan fatality
I had overlooked -fno-sanitize-recover=all in CFLAGS further up
previously; it makes UBSAN_OPTIONS='halt_on_error=1' default, already.

Follow-up to commit b4b780965420741adfb71b7814f8478b214c5ace.
2025-09-20 20:21:00 +02:00
Sebastian Pipping
9b17ebb1fa Revert mistaken "qa.sh: Drop ineffective "abort_on_error=1""
It turns out it *does* have an effect and a healthy one:

With regard to the process exit code:
- 0 by default
- 1 with UBSAN_OPTIONS='halt_on_error=1'
- 134 (= 128 + SIGABRT) with UBSAN_OPTIONS='halt_on_error=1:abort_on_error=1'

This reverts commit ac5c42be51ef345af8c390a942943faa9dca5ba3.
2025-09-20 20:21:00 +02:00
Sebastian Pipping
6fe5df59a1 Changes: Document pull request #1047 2025-09-20 20:12:15 +02:00
Sebastian Pipping
343594dc34 tests: Add new test test_alloc_tracker_pointer_alignment 2025-09-20 20:12:15 +02:00
Sebastian Pipping
5cc0010ad9 tests: Fix test guard for test related to allocation tracking 2025-09-20 20:12:15 +02:00
Sebastian Pipping
4b43b8dacc lib: Fix alignment of internal allocations for some non-amd64 architectures
sparc32 is known to be affected.
2025-09-20 20:12:04 +02:00
Sebastian Pipping
41b8734b48
Merge pull request #1049 from Smattr/smattr/535fd5ee-835f-4c4f-b122-95ee00d831ee
autotools: Remove `ln -s` discovery
2025-09-20 19:13:25 +02:00
Matthew Fernandez
5bdfa70aa0 autotools: Remove ln -s discovery
Nothing in the build uses `LN_S`.
2025-09-19 18:11:18 -07:00
Sebastian Pipping
84e05eb653
Merge pull request #1047 from libexpat/fatal-ubsan
Make UBSan fatal for regression fuzzing CI
2025-09-20 01:28:04 +02:00
Sebastian Pipping
ac5c42be51 qa.sh: Drop ineffective "abort_on_error=1"
It does not seem to have any effect with recent GCC or Clang
and "halt_on_error=1" is already doing what we need.
2025-09-19 23:44:02 +02:00
Sebastian Pipping
b4b7809654 fuzzing.yml: Make UBSan fatal 2025-09-19 23:44:02 +02:00
Sebastian Pipping
b5c91123b9
Merge pull request #1041 from libexpat/improve-change-log
Improve change log of release 2.7.2
2025-09-19 22:29:52 +02:00
Sebastian Pipping
d4ef297b3c Changes: Document #1041 2025-09-19 03:08:07 +02:00
Sebastian Pipping
429afd5c16 Changes: Improve entries on release 2.7.2 2025-09-19 03:07:34 +02:00
Sebastian Pipping
aa7db7aba1
Merge pull request #1043 from libexpat/document-safe-from-overflow-proof
Document safe-from-overflow proof (follow-up to #1034)
2025-09-19 03:04:38 +02:00
Sebastian Pipping
e3943fb1b7
Merge pull request #1044 from libexpat/linux-ci-fail-fast-false
`linux.yml`: Stop aborting at first job failure
2025-09-18 23:22:17 +02:00
Sebastian Pipping
c337982155
Merge pull request #1045 from libexpat/readme-fix-typo
`README.md`: Fix typo "R_0_Y_Z" to "R_X_Y_Z"
2025-09-18 23:21:58 +02:00
Sebastian Pipping
5f4b8cf848 README.md: Fix typo "R_0_Y_Z" to "R_X_Y_Z" 2025-09-18 18:54:37 +02:00