Test case for a truncated zip file: unittest { enum data = "\x50\x4b\x01\x02\x50\x4b\x05\x06\x00\x00\x00\x00\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"; scope zip = new ZipArchive(cast(void[]) data); } This causes a range error at std.zip.d:1335
@berni44 created dlang/phobos pull request #7365 "Fix Issue 20523 - std.zip: Invalid data yields RangeError in ZipArchive constructor" fixing this issue: - Fix Issue 20523 - std.zip: Invalid data yields RangeError in ZipArchive constructor https://github.com/dlang/phobos/pull/7365
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/9787 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB