poco icon indicating copy to clipboard operation
poco copied to clipboard

Exception during Zip file decompression

Open Ubiquite opened this issue 7 years ago • 2 comments

When I open a zip file generated with the FMI matlab Tool Box I receive an exception : Illegal state: Illegal header in zip file

Here is the code :

int main(void)
{
    try
    {
        Poco::File temporary_directory = Poco::TemporaryFile::tempName();
        temporary_directory.createDirectory();

        std::ifstream inp("C:/dev/untitled.fmu", std::ios::binary);
        Poco::Zip::Decompress dec(inp, temporary_directory.path());
        dec.decompressAllFiles();
    }
    catch (Poco::IllegalStateException &e)
    {
        std::cerr << e.displayText();
    }
    return 0;
}

zip file

POCO version

1.7.9

Compiler and version

Visual 2013 64bits

Operating system and version

Windows 10 64 bits

Other relevant information

Maybe the zip file is wrongly formed but of course I can open it with anything but POCO.

Ubiquite avatar Jan 18 '18 14:01 Ubiquite

@Ubiquite see #1892 , please try to upgrade to 1.8.1 and se if the error persists

aleks-f avatar Jan 18 '18 16:01 aleks-f

This issue is stale because it has been open for 365 days with no activity.

github-actions[bot] avatar Aug 26 '22 03:08 github-actions[bot]

This issue was closed because it has been inactive for 60 days since being marked as stale.

github-actions[bot] avatar Jan 02 '23 02:01 github-actions[bot]