artem-karpenko/archiver-zip-encrypted

Fix local size field

Closed this issue · 1 comments

Need to think of a way to set real and compressed size fields in local file headers in resulting ZIP file. Apparently while 0 sizes work fine for plain archives, it doesn't work for encrypted files (7-Z throws a header error when unpacking).

See https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT.
It's actually possible to provide crc and sizes right after file data while setting appropriate bit GBD record.