jedarden
432514d350
wip: AcroForm improvements, debug tooling, test corpus, and fixture updates
...
Collects in-progress work across forms (Ch/Tx field handling, value_text
edge cases), layout corrections, stream parser fixes, conformance test
expansion, security audit test (TH-08), stream-decoder bomb fixture,
debug examples reorganization under examples/debug/, sdk module scaffold,
xtask CLI enhancements, and provenance entries for new fixtures.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-30 09:48:14 -04:00
jedarden
f8e51d6449
test(pdftract-1xwks): add stream decoder proptest roundtrip tests
...
Schema Generation Validation / Validate JSON Schema (push) Waiting to run
Schema Generation Validation / Validate JSON Syntax (push) Waiting to run
Add missing proptest roundtrip tests to verify encode/decode symmetry:
- prop_flate_roundtrip: compress via flate2, decompress via FlateDecoder
- prop_a85_roundtrip: encode via helper, decode via ASCII85Decode
- prop_runlength_roundtrip: encode via helper, decode via RunLengthDecode
- prop_bomb_limit_enforced: synthetic bombs capped at limit
- prop_filter_pipeline_never_panics: arbitrary bytes through chained filters
Helper functions:
- encode_ascii85(): implements ASCII85 encoding algorithm
- encode_runlength(): implements RunLength encoding (literal + repeat)
Existing infrastructure (pre-existing):
- 17 curated fixtures in tests/stream_decoder/fixtures/
- Integration test runner in tests/stream_decoder_fixtures.rs
- Existing proptest tests for no-panic invariants
NOTE: Tests cannot run due to pre-existing compilation errors in codebase
(FileSource naming conflict, missing diagnostic codes). Tests are syntactically
correct and will pass once compilation errors are resolved.
Refs: pdftract-1xwks
2026-05-28 07:04:51 -04:00