Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poco::Zip::ZipArchive cannot load new tomcat.zip file #2661

Closed
hop2286 opened this issue Mar 29, 2019 · 4 comments
Closed

Poco::Zip::ZipArchive cannot load new tomcat.zip file #2661

hop2286 opened this issue Mar 29, 2019 · 4 comments
Assignees
Milestone

Comments

@hop2286
Copy link

hop2286 commented Mar 29, 2019

Expected behavior

Poco::Zip::ZipArchive load zip archive

Actual behavior

throws an exception Assertion violation

Steps to reproduce the problem

download tomcat version 9.0.17
http://tux.rainside.sk/apache/tomcat/tomcat-9/v9.0.17/bin/apache-tomcat-9.0.17-windows-x64.zip
try to unzip by Poco::Zip::ZipArchive

POCO version

poco-1.9.0-all

Compiler and version

visual studio 2017

Operating system and version

windows 10 x64

Other relevant information

tomcat 9.0.16 and higher

#include "pch.h"
#include
#include
#include "d:\Poco_test\poco-1.9.0-all\Zip\include\Poco\Zip\ZipArchive.h"

int main()
{
std::string folderName = "d:\Downloads\apache-tomcat-9.0.17-windows-x64.zip";
std::ifstream inp(folderName, std::ios::binary);
poco_assert(inp);
try
{
Poco::Zip::ZipArchive arch(inp);
}
catch (std::exception& e)
{
std::cout << e.what();
}
}

@OgreTransporter
Copy link
Contributor

I loaded the file from https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.17/bin/apache-tomcat-9.0.17-windows-x64.zip and tried it with the unzip example:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Assertion violation: size >= 8 [in file "D:\poco-dev\poco\Zip\src\ZipLocalFileHeader.cpp", line 168]
[call trace not available]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Assertion violation: size >= 8 in file "D:\poco-dev\poco\Zip\src\ZipLocalFileHeader.cpp", line 168
[call trace not available]

POCO version
develop branch

Compiler and version
Visual Studio 2017 (15.9.11)

Operating system and version
Windows 10 x64 (1809)

@obiltschnig obiltschnig self-assigned this May 14, 2019
@obiltschnig obiltschnig added this to the Release 1.9.1 milestone May 14, 2019
@obiltschnig
Copy link
Member

I may already have a fix for that sent by a customer.

@hop2286
Copy link
Author

hop2286 commented Jul 23, 2019

It still not working. I have tried 1.9.1 and 1.9.2. and same error.
http://tux.rainside.sk/apache/tomcat/tomcat-9/v9.0.22/bin/apache-tomcat-9.0.22-windows-x64.zip
thanks

@obiltschnig
Copy link
Member

Looks like same bug, but in another file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants