poco
poco copied to clipboard
Exception during Zip file decompression
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;
}
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 see #1892 , please try to upgrade to 1.8.1 and se if the error persists
This issue is stale because it has been open for 365 days with no activity.
This issue was closed because it has been inactive for 60 days since being marked as stale.