Skip to content

Assertion violation in DateTime.cpp using ZipArchive #1465

@ttakkyon

Description

@ttakkyon

I get the following exception when calling the Poco::Zip::ZipArchive(std::istream& in) constructor:
Assertion violation: _month >= 1 && _month <= 12 [in file "src\DateTime.cpp", line 67]

The archive causing this can be found here: http://ws.q3df.org/map/XCM_Tricks2 , but the issue is simply that some archive entries is missing Date/Time as you would expect.

My environment is:

  • Win10 x64
  • Visual studio 2013, C++
  • Poco 1.7.6, 1.7.7, develop(Oct 18, 2016) (Dynamic link, release and debug, x64)

7-Zip and Window Explorer can handle these files (the Date/Time field is simply empty).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions