mirror of
https://github.com/D-Modem/bbs.git
synced 2026-11-28 17:38:04 -08:00
internal/archive reads ZIP, ARC (stored, packed, squeezed, crunched, squashed), ARJ (methods 0 to 4) and LHA (-lh0-, -lh4- to -lh7-, header levels 0 to 2) in Go, with no other programs, and writes ARC, ARJ and LHA stored. Sizes are checked before memory is given to them and every entry against its CRC; it was fuzzed, and stressed with 350,000 damaged archives (none slower than 30 ms). The test archives were made by the real programs (arc 5.21q, ARJ32 3.10, jlha), and what is written here passes their own tests. Bundles from links are tossed whatever their format (known by their first bytes, not their names); packer = arc, arj or lha bundles in those (stored). A test packs packets with the real programs, compressing, where they are installed. The file base lists and takes FILE_ID.DIZ from ARC, ARJ and LHA archives too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr