Skip to content

Poco/ZIP issue with uncompressed archives #1567

@DanielSp-gfk

Description

@DanielSp-gfk

Hi,

I've encountered an issue when unpacking uncompressed files from a zip archive.

Code used

Poco::FileInputStream inp("archive.zip", std::ios::binary);
if (inp.good()) {
    try {
        Poco::Zip::Decompress dec(inp, ".\\unpacked");
        dec.decompressAllFiles();
    } catch (Poco::Exception& ex) {}
}

Exception Message: Bad data info header

Other tools are able to unpack these archives.
Example Archive:
contains_zip_store.zip

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions