mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-01 13:47:21 -06:00
The reader cut every trailing zero byte off the Zstandard editing data before decoding it, to drop the padding after the last frame. A frame can end in a zero byte itself (a raw or RLE block, or a checksum whose last byte is zero), and cutting it left the frame short, so the file failed to open with "its Zstandard compression is damaged". The reader now decodes frame after frame and stops when only zeros are left.