PureXML/Tests
Mihaela Mihaljevic 4856a3fcf4 feat(parser): add bounded-by-default limits (depth, name, content)
Add PureXML.Parsing.Limits: configurable caps on nesting depth (default 256,
matching libxml2), name length, and content length, enforced during scanning in
the event reader. This protects against pathological input (deeply nested or
oversized documents) and keeps the recursive Model.Node value safe to build and
tear down (extreme depth otherwise overflows on ARC release). Threaded through
Parser.parse and the top-level parse/events API. Reimplemented from libxml2's
bounded-by-default posture; no upstream code copied.
2026-06-08 00:40:34 +02:00
..
Fixtures chore: scaffold PureXML pure-Swift XML package 2026-06-07 23:20:20 +02:00
ModelTests.swift chore: scaffold PureXML pure-Swift XML package 2026-06-07 23:20:20 +02:00
ParsingTests.swift feat(parser): add bounded-by-default limits (depth, name, content) 2026-06-08 00:40:34 +02:00
SerializerTests.swift refactor(emitter): make the serializer iterative and fix mixed content 2026-06-08 00:31:05 +02:00
ValidationTests.swift chore: scaffold PureXML pure-Swift XML package 2026-06-07 23:20:20 +02:00