Sebastian Pipping
899c00e613
doc/reference.html: Document billion laughs attack protection API
2021-05-07 18:25:07 +02:00
Sebastian Pipping
bf87849598
xmlwf.1: Document arguments -a and -b
2021-05-07 18:25:07 +02:00
Sebastian Pipping
c6223b3b0f
xmlwf: Add support for custom attack protection parameters
2021-05-07 18:25:07 +02:00
Sebastian Pipping
65cddaa4e9
xmlwf: Include expat_config.h so we can check for macro XML_DTD
2021-05-07 18:25:07 +02:00
Sebastian Pipping
271efb6069
tests: Cover accounting
2021-05-07 18:25:07 +02:00
Sebastian Pipping
29c3748788
lib: Make EXPAT_ENTROPY_DEBUG consistent with other EXPAT_*_DEBUG variables
2021-05-07 18:25:07 +02:00
Sebastian Pipping
857fdc4c3b
lib: Add prefix "expat: " to EXPAT_ENTROPY_DEBUG=1 stderr output
2021-05-07 18:25:07 +02:00
Sebastian Pipping
8af7d22ff0
lib: Allow test suite to access raw accounting values
2021-05-07 18:25:07 +02:00
Sebastian Pipping
fcd0e14c3e
lib: Address Cppcheck 2.4.1 warning "uninitvar"
2021-05-07 18:25:07 +02:00
Sebastian Pipping
b1d039607d
lib: Protect against billion laughs attacks (approach 3.0.21)
2021-05-07 18:25:07 +02:00
Sebastian Pipping
1e053c698b
Autotools|CMake: Suppress -Wpedantic-ms-format false positives
...
Addresses warning:
ISO C does not support the ‘I64’ ms_printf length modifier.
It seems correct and relevant with __USE_MINGW_ANSI_STDIO, only.
And -Werror doesn't tolerate false positives...
2021-05-07 18:25:07 +02:00
Sebastian Pipping
3120b86447
mass-cppcheck.sh: Suppress warning "unknownMacro"
2021-05-07 18:25:07 +02:00
Sebastian Pipping
9d425466b8
Merge pull request #477 from libexpat/doc-ensure-valid-xml
...
Make CI ensure well-formed and valid XML in our XML-based documentation
2021-05-07 18:24:26 +02:00
Sebastian Pipping
e43dab0c44
Actions: Ensure well-formed and valid XML
2021-05-07 17:04:06 +02:00
Sebastian Pipping
55dbc44200
doc/reference.html: Fix XML validity
2021-05-07 17:04:06 +02:00
Sebastian Pipping
283f024a4e
xmlwf.1: Fix DocBook validity
2021-05-07 17:04:06 +02:00
Sebastian Pipping
edf095116c
xmlwf.1: Add public external DocBook identifier to doctype
...
.. so that we can throw validation tools at it.
2021-05-07 17:04:06 +02:00
Sebastian Pipping
8d28fe29be
Merge pull request #476 from libexpat/fix-github-actions
...
Fix GitHub Actions
2021-05-07 15:56:32 +02:00
Sebastian Pipping
fe29a25ec0
.github/workflows: Re-add repo ppa:ondrej/php(!) to fix wine32 installation
...
Related:
https://github.com/actions/virtual-environments/issues/3339
2021-05-07 15:12:06 +02:00
Sebastian Pipping
1a01ba37f0
.github/workflows/coverage.yml: Fix broken task name
2021-05-07 15:10:37 +02:00
Sebastian Pipping
7938b88c9b
Merge pull request #475 from libexpat/restyle-doc-reference-html
...
Quickly restyle doc/reference.html to look a bit less like the 90s (based on a classless CSS kit)
2021-05-05 01:24:11 +02:00
Sebastian Pipping
6f47cee760
doc/reference.html: Introduce <h4> headings for API functions
2021-05-04 23:49:05 +02:00
Sebastian Pipping
30c4aa85f5
doc/reference.html: Replace footer, encourage bug reports
2021-05-04 23:49:03 +02:00
Sebastian Pipping
e13d94b426
doc/reference.html: Simplify header
2021-05-04 23:49:03 +02:00
Sebastian Pipping
3596977d9d
doc/reference.html: Migrate to OK.css
...
Precisely this version:
ab0e43d64b/dist/ok.min.css
2021-05-04 23:49:00 +02:00
Sebastian Pipping
888566e418
doc/reference.html: Fix latest release version
2021-05-04 21:14:53 +02:00
Sebastian Pipping
f5dd8a9a5a
doc/reference.html: Add missing space after "Note:"
2021-05-04 21:14:53 +02:00
Sebastian Pipping
988bff10cd
doc/reference.html: Always start uppercase after "Note: "
2021-05-04 21:14:53 +02:00
Sebastian Pipping
7f7da50d9c
Merge pull request #473 from libexpat/improve-attribution
...
Improve attribution
2021-05-02 23:52:01 +02:00
Sebastian Pipping
7820e4137f
Merge pull request #474 from libexpat/actions-isolate-coverage
...
GitHub Actions: Isolate (somewhat flaky) coverage task
2021-05-02 22:40:39 +02:00
Sebastian Pipping
4a7b1d5dcf
Actions: Isolate somewhat flaky coverage task
2021-05-02 20:49:51 +02:00
Sebastian Pipping
df42f935bf
Increase precision in existing MIT headers based on Git history
2021-05-02 19:53:29 +02:00
Sebastian Pipping
8c6f0369db
Add missing MIT headers
2021-05-02 19:53:29 +02:00
Sebastian Pipping
bb3cf96dbe
Pump up oneline MIT headers to full ones
2021-05-02 19:53:29 +02:00
Sebastian Pipping
1f0b77316b
.mailmap: Initialize Git mailmap
2021-05-02 19:53:29 +02:00
Sebastian Pipping
6050ed062e
Merge pull request #472 from libexpat/delete-unused-helper-printpath
...
conftools: Delete unused legacy helper PrintPath
2021-05-02 01:52:47 +02:00
Sebastian Pipping
ec3186f7ac
conftools: Delete unused legacy helper PrintPath
2021-05-02 00:50:54 +02:00
Sebastian Pipping
c93729b961
mass-cppcheck.sh: Extract variable cppcheck_args
2021-04-30 21:09:05 +02:00
Sebastian Pipping
8755b82355
apply-clang-format.sh: Support formatting only selected files
2021-04-30 21:09:05 +02:00
Sebastian Pipping
ab8830f72c
apply-clang-format.sh: Extract variable clang_format_args
2021-04-30 21:09:05 +02:00
Sebastian Pipping
af6bb52c7d
Merge pull request #470 from libexpat/issue-332-drop-clang-asan-plus-min-size-workaround
...
[XML_MIN_SIZE only] Fix segfault with UTF-16 CDATA (fixes #332 )
2021-04-30 05:25:17 +02:00
Sebastian Pipping
ed36812db2
lib: Fix macro IS_INVALID_CHAR (for UTF-16 with macro XML_MIN_SIZE defined)
...
What happens is that with macro XML_MIN_SIZE defined,
for UTF-16 macro IS_INVALID_CHAR was being set to ..
> #define IS_INVALID_CHAR(enc, p, n) (AS_NORMAL_ENCODING(enc)->isInvalid##n(enc, p))
.. which calls NULL pointers in .isInvalid{2,3,4} at runtime.
For UTF-16 we actually need what xmltok_impl.c does for macro
IS_INVALID_CHAR when it has not yet been defined:
> # ifndef IS_INVALID_CHAR
> # define IS_INVALID_CHAR(enc, ptr, n) (0)
> # endif
So the fix is a combination of these two:
- Use .isInvalid{2,3,4} where needed and available and
- return 0/false for UTF-16 where .isInvalid{2,3,4} are NULL.
2021-04-26 14:18:00 +02:00
Sebastian Pipping
3b1b81f028
lib: Add comments about effect of XML_MIN_SIZE to xmltok_impl.c
2021-04-26 14:18:00 +02:00
Sebastian Pipping
841338da7f
Revert "runtests.c: Fix compiler warning "unused function" with -DEXPAT_MIN_SIZE=ON"
...
This reverts commit 76f2beee81
.
2021-04-25 22:51:23 +02:00
Sebastian Pipping
72cdab2aeb
Revert "runtests.c: Workaround issue with combining XML_MIN_SIZE and ASan ( #332 )"
...
This reverts commit 48d4929bff
.
2021-04-25 22:51:23 +02:00
Sebastian Pipping
444af3db23
Merge pull request #469 from libexpat/xmlwf-improve-manpage
...
xmlwf: Improve manpage
2021-04-25 20:30:09 +02:00
Sebastian Pipping
1a5ae0e4c0
Changes: Document improvements to the man page
2021-04-25 19:13:00 +02:00
Sebastian Pipping
1f75b7fbac
xmlwf.1: Bump date of last modification
2021-04-25 19:11:14 +02:00
Sebastian Pipping
dd77046dc3
xmlwf.1: Be more precise in section "author"
2021-04-25 19:11:14 +02:00
Sebastian Pipping
de34e8ce15
xmlwf.1: Use <command>&dhpackage;</command> where missing
2021-04-25 19:11:14 +02:00