Commit Graph
7 Commits
Author SHA1 Message Date
dotCooCoo c995600653 craft-xml: the internal subset search counts what it reads instead of timing
an_internal_subset_is_refused_wherever_it_hides passed its two hostile
inputs (100,000 DOCTYPE markers in one comment, and 100,000 that never
close) only when parsing them finished within 5 s. The test keeps those
parses without the time check. A test-only counter now records each
byte doctype_refused and its helpers read, and each window after()
compares. A new unit test in read.rs,
looking_for_an_internal_subset_is_linear_in_the_input, allows at most
one read per input byte for each input, and the counter fails the test
as soon as the reads pass that limit. With the search resuming one byte
after an unclosed declaration instead of at its end, the test fails at
1,000,005 reads of a 1,000,003-byte input.
2026-11-27 19:06:18 -08:00
FredApps 29feaf0b05 Merge pull request #2681 from yoriswind/codex/2212-xml-attrs-test-cap
xml: check the aggregate attribute budget at cap plus one
2026-11-27 22:59:15 +01:00
dotCooCoo 334f5faa72 Preserve non-XML whitespace when dropping indentation 2026-11-26 17:53:52 -08:00
yoriswind bec3767e7c Integrate current upstream while preserving the useful residual 2026-11-26 07:59:03 -08:00
aiongg 337974b224 tests: loudness range at full segment length (16 kHz), xml streaming limit below one element 2026-11-24 21:29:34 +00:00
aiongg 0593def5d0 craft-openpgp, craft-raw, craft-captions, craft-xml, craft-ods, craft-proof, craft-font-subset, craft-drawingml: smaller or gated passes 2026-11-24 19:48:21 +00:00
FredApps 1b59913603 Consolidate related markup tests 2026-11-19 13:06:16 +01:00