mirror of
https://github.com/storytold/craft-anything.git
synced 2026-11-25 17:01:02 +01:00
The XZ decoder expected the file to end right after one stream's footer, so valid .xz files with several streams or the standard four-byte padding were refused. It now finds each stream's bounds from the end, through its checksummed footer and index, and decodes them in order under one output budget; index integers, declared sizes and padding alignment are checked, and every read of the input is bounds-checked. SquashFS blocks keep the single-stream decoder, as before.