mirror of
https://github.com/storytold/AniCraft.git
synced 2026-11-28 17:19:31 +01:00
At review, the compound binary container moves to the shared craft-cfb reader from craft-libs (rev b67b9f9, the one craft-xfl and craft-xml already use). crates/fla's own MS-CFB reader is removed. The `cfb` module keeps only the importer's policy: the ADR 0054 caps (1 GiB per file, 256 MiB per stream), stream lookup by full path, and one-sentence errors. Chain walks, cycle guards and directory bounds are craft-cfb's. Container errors that named one structural fault each (bad header, truncated, looping chain or tree) are now `Damaged`, carrying craft-cfb's reason. craft-cfb is more tolerant in two places, and the tests now pin it: - a FAT count the file could hold but its DIFAT doesn't list opens; - a root that overstates its mini stream opens, read to the file's end at most. In both cases nothing past the file is reserved. The test of the removed reader's internal chain budget (`the_directory_reads_no_further_than_the_most_entries`) is dropped with the code it tested. Checked against the nine EDAP legacy files: the same streams, sizes and record tags in `fla-dump`, the same `info`, and byte-identical frame renders with the old and the new reader. The ADR is renumbered to 0120, reserved for this PR (0096 is the guide search ADR on main). Its references move with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>