Sebastian Pipping
bcdc25b04d
Merge pull request #753 from SonyMobile/consume-bom
...
Fix parse-size-dependent "invalid token" error for external entities that start with a byte order mark
2023-09-22 18:06:57 +02:00
Snild Dolkow
b1e955449c
Always consume BOM bytes when found in prolog
...
The byte order mark is not correctly consumed when followed by an
incomplete token in a non-final parse. This results in the BOM staying
in the buffer, causing an invalid token error later.
This was not detected by existing tests because they either parse
everything in one call, or add a single byte at a time.
By moving `s` forward when we find a BOM, we make sure that the BOM
bytes are properly consumed in all cases.
2023-09-22 17:14:22 +02:00
Sebastian Pipping
a642ba0920
Merge pull request #749 from libexpat/cmake-3-5-0-plus
...
CMake: Require CMake >=3.5.0
2023-09-21 22:53:58 +02:00
Sebastian Pipping
298f407021
Merge pull request #750 from libexpat/tests-cxx-11
...
tests: Require a C++11 compiler
2023-09-21 22:47:48 +02:00
Sebastian Pipping
bb6ec6ad0f
Merge pull request #751 from libexpat/cmake-c99
...
CMake: Require a C99 compiler
2023-09-21 21:45:34 +02:00
Sebastian Pipping
9666cc5e38
qa.sh: Stop passing -Wno-long-long
...
.. since we have C99 and C++11 now: Both understand long long.
2023-09-21 21:32:28 +02:00
Sebastian Pipping
1bf3ddfdad
CI: Request C++11 rather than C++98
2023-09-21 19:34:23 +02:00
Sebastian Pipping
47b86b5d46
CMake: Require a C++11 compiler for the optional test suite
2023-09-21 19:34:23 +02:00
Sebastian Pipping
2a24068ec8
CMake: Require a C99 compiler
2023-09-21 19:30:30 +02:00
Sebastian Pipping
6162b99065
Merge pull request #748 from libexpat/runtests-cxx-restore
...
tests: Restore that all of runtestspp is run through a C++ compiler
2023-09-21 13:25:09 +02:00
Sebastian Pipping
ede28c8fe0
configure.ac: Require a C++11 compiler for the optional test suite
2023-09-20 19:09:30 +02:00
Sebastian Pipping
8c96dcad17
list_exported_macros.sh: Avoid producing word "if"
...
.. as use of macro AX_CXX_COMPILE_STDCXX_11 would.
2023-09-20 19:09:30 +02:00
Sebastian Pipping
74dbef1552
CMake: Pass -Wno-format with MinGW
2023-09-20 19:08:05 +02:00
Sebastian Pipping
4642553bb8
CMake: Stop redefining STDC_HEADERS
2023-09-20 19:08:03 +02:00
Sebastian Pipping
899a775a2e
CMake: Require CMake >=3.5.0
...
> CMake Deprecation Warning at CMakeLists.txt:37 (cmake_minimum_required):
> Compatibility with CMake < 3.5 will be removed from a future version of
> CMake.
>
> Update the VERSION argument <min> value or use a ...<max> suffix to tell
> CMake that the project does not need compatibility with older versions.
2023-09-19 19:45:05 +02:00
Sebastian Pipping
07b6d0089f
tests: Rename "runtestspp" to "runtests_cxx"
2023-09-19 19:25:19 +02:00
Sebastian Pipping
aacc14f4b4
tests: Restore that all of runtestspp is run through a C++ compiler
...
.. as originally intended before the big split-up refactoring.
2023-09-19 19:22:20 +02:00
Sebastian Pipping
322ac581e3
tests: Cast malloc/calloc/realloc results to allow use as C and C++
2023-09-19 19:20:11 +02:00
Sebastian Pipping
f5e20fcb9d
tests: Add more const near malloc/calloc/realloc
2023-09-19 19:19:33 +02:00
Sebastian Pipping
34dc95a08a
tests/structdata.c: Avoid name "new" to allow reuse from C++
2023-09-19 19:14:14 +02:00
Sebastian Pipping
2fb1aee9aa
tests/Makefile.am: Sort libruntests_a_SOURCES alphabetically
2023-09-19 18:51:41 +02:00
Sebastian Pipping
8192058e2a
Merge pull request #747 from libexpat/tests-explicit-expat-config-h
...
tests/handlers.h: Be explicit about direct dependency expat_config.h
2023-09-19 18:34:29 +02:00
Sebastian Pipping
41762d1cf2
Merge pull request #746 from libexpat/cmake-sort-xmlwf-sources
...
CMake: Sort xmlwf sources alphabetically
2023-09-19 17:58:47 +02:00
Sebastian Pipping
b709ce2b0a
CMake: Sort xmlwf sources alphabetically
2023-09-19 16:19:47 +02:00
Sebastian Pipping
48f15bfa1c
tests/handlers.h: Be explicit about direct dependency expat_config.h
...
The file checks for XML_DTD being defined.
2023-09-19 16:16:54 +02:00
Snild Dolkow
c803b93e87
minicheck: Add simple subtest support
...
This will be useful when a test runs through several examples and
fails somewhere in the middle. The subtest string replaces the
phase_info string (i.e. "during actual test") in the failure output.
Added subtest info to various tests where I found for loops.
2023-09-18 10:46:01 +02:00
Sebastian Pipping
4811d55b12
Merge pull request #745 from SonyMobile/is-final
...
Document the importance of isFinal + adjust tests accordingly
2023-09-14 16:05:54 +02:00
Snild Dolkow
d4105a9080
tests: Set isFinal=1 in line/column-number-after-error tests
2023-09-14 11:16:40 +02:00
Snild Dolkow
2cee1061e2
tests: Set isFinal in test_column_number_after_parse
...
Without this, parsing of the end tag may be deferred, yielding an
unexpected column number.
2023-09-14 11:16:36 +02:00
Snild Dolkow
d52b414149
tests: Move triplet_start_checker flag check after isFinal=1 call
...
There is no guarantee that the callback will happen before the parse
call with isFinal=XML_TRUE. Let's move the assertion to a location
where we know it must have happened.
2023-09-14 11:16:29 +02:00
Snild Dolkow
355a123b92
docs: Document the importance of isFinal
...
Before the concluding `isFinal=XML_TRUE` parse call, there is no
guarantee that all input has been parsed. An application that omits
that call risks missing handler callbacks and/or parsing errors.
2023-09-14 11:15:59 +02:00
Sebastian Pipping
9d715b1062
Merge pull request #744 from libexpat/xmlwf-help-fixes
...
xmlwf: Improve language and URL clickability in help output
2023-09-11 23:13:19 +02:00
Sebastian Pipping
2f2cda0a2a
xmlwf: Improve language and URL clickability in help output
2023-09-11 21:54:24 +02:00
Sebastian Pipping
ac5faf7d2d
Merge pull request #743 from libexpat/dependabot/github_actions/actions/checkout-4.0.0
...
Actions(deps): Bump actions/checkout from 3.6.0 to 4.0.0
2023-09-11 21:11:59 +02:00
Sebastian Pipping
3e92d68ce2
Merge pull request #742 from libexpat/dependabot/github_actions/actions/upload-artifact-3.1.3
...
Actions(deps): Bump actions/upload-artifact from 3.1.2 to 3.1.3
2023-09-11 15:36:24 +02:00
dependabot[bot]
37a2262af4
Actions(deps): Bump actions/checkout from 3.6.0 to 4.0.0
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3.6.0 to 4.0.0.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](f43a0e5ff2...3df4ab11eb
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-11 12:19:44 +00:00
dependabot[bot]
d644e679d4
Actions(deps): Bump actions/upload-artifact from 3.1.2 to 3.1.3
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](0b7f8abb15...a8a3f3ad30
)
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-11 12:19:39 +00:00
Sebastian Pipping
8b5c9e1a01
Merge pull request #740 from libexpat/pull-674-sandwich
...
Merge branch `pull-674-sandwich` into `master`
2023-09-02 23:11:31 +02:00
Sebastian Pipping
f4071b8417
Merge pull request #739 from libexpat/codespell-action
...
codespell.yml: Make CI reject spelling errors using codespell + fix two typos
2023-09-02 22:14:31 +02:00
Sebastian Pipping
66435e268f
Merge pull request #738 from libexpat/pull-674-topping
...
Make branch `pull-674-sandwich` mergable to `master`
2023-09-02 20:50:34 +02:00
Sebastian Pipping
181d06421d
codespell.yml: Make CI reject spelling errors using codespell
2023-09-02 19:04:38 +02:00
Sebastian Pipping
c0a78d0511
Changes: Fix typo "curruption" in section on release 2.5.0
2023-09-02 19:04:38 +02:00
Sebastian Pipping
1264df28b3
CMake: Fix in-comment typo "compatiblity"
2023-09-02 19:04:38 +02:00
Sebastian Pipping
2ac0600db5
Merge pull request #737 from libexpat/dependabot/github_actions/actions/checkout-3.6.0
...
Actions(deps): Bump actions/checkout from 3.5.3 to 3.6.0
2023-09-02 18:46:29 +02:00
Sebastian Pipping
ca6050827d
tests/ns_tests.c: Be explicit about direct dependency expat_config.h
2023-09-02 18:38:03 +02:00
Sebastian Pipping
26c33a2dcc
tests: Undef NDEBUG where needed more after refactoring
...
All other test files using assert(..) and <assert.h> have the same.
2023-09-02 18:37:35 +02:00
Sebastian Pipping
17367a5642
tests/runtests.c: Re-apply 883115d0a3
and c094e450a1
...
This effectively reverts commit 42dc2c2c4e
.
2023-09-02 18:36:36 +02:00
Sebastian Pipping
014a303dc1
Merge pull request #674 from RMJ10/test_refactor_2
...
Refactor coverage and conformance tests
2023-09-02 18:33:53 +02:00
dependabot[bot]
fab7fdd903
Actions(deps): Bump actions/checkout from 3.5.3 to 3.6.0
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3.5.3 to 3.6.0.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](c85c95e3d7...f43a0e5ff2
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-08-28 12:05:56 +00:00
Sebastian Pipping
42dc2c2c4e
tests/runtests.c: Revert 883115d0a3
and c094e450a1
...
.. to not break a ~100 commit refactoring during rebase. Will be re-applied after refactoring.
Related command was:
$ git checkout c094e450a136ffdf4d3e128588b615008a35489e^ -- ./tests/runtests.c
2023-08-26 15:31:34 +02:00