-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
When I try to create a zip file and set seekableOut argument of Compress ctor to false the result file is corrupted.
Poco::Zip::Compress c(out, false); /* seekableOut = false /
...
compressor.addFile(anEntry, anEntry); / Compression level = MAX, Compression Algorithm = DEFLATE */
Looking at the resulting zip file in hex-editor I can see the following things that are wrong:
- general purpose bit flag in Central directory is invalid - it should be [0A 00], instead it is [00 02]
- crc, compressed size, uncompressed size in central directory are all zeros.
- For one of the files in the zip file (I compressed two files) the local header offset in the central directory was invalid.
- central directory offset is invalid.
Reactions are currently unavailable