mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
synced 2025-11-02 03:27:56 +00:00
fixed GH #2661: Poco::Zip::ZipArchive cannot load new tomcat.zip file
This commit is contained in:
@@ -165,8 +165,7 @@ void ZipLocalFileHeader::parse(std::istream& inp, bool assumeHeaderRead)
|
|||||||
if (id == ZipCommon::ZIP64_EXTRA_ID)
|
if (id == ZipCommon::ZIP64_EXTRA_ID)
|
||||||
{
|
{
|
||||||
_forceZip64 = true;
|
_forceZip64 = true;
|
||||||
poco_assert(size >= 8);
|
if (size >= 8 && getUncompressedSizeFromHeader() == ZipCommon::ZIP64_MAGIC)
|
||||||
if (getUncompressedSizeFromHeader() == ZipCommon::ZIP64_MAGIC)
|
|
||||||
{
|
{
|
||||||
setUncompressedSize(ZipUtil::get64BitValue(ptr, 0));
|
setUncompressedSize(ZipUtil::get64BitValue(ptr, 0));
|
||||||
size -= 8;
|
size -= 8;
|
||||||
|
|||||||
Reference in New Issue
Block a user