Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 43CC4200D51 for ; Fri, 22 Dec 2017 19:23:09 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3ECE1160C19; Fri, 22 Dec 2017 18:23:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 84B27160C2E for ; Fri, 22 Dec 2017 19:23:08 +0100 (CET) Received: (qmail 46907 invoked by uid 500); 22 Dec 2017 18:23:07 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 46896 invoked by uid 99); 22 Dec 2017 18:23:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Dec 2017 18:23:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 1D6231A0F3A for ; Fri, 22 Dec 2017 18:23:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Qoky-3BM9muo for ; Fri, 22 Dec 2017 18:23:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 5BDBD5FBB7 for ; Fri, 22 Dec 2017 18:23:04 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9DC66E25D7 for ; Fri, 22 Dec 2017 18:23:02 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id A72CF24147 for ; Fri, 22 Dec 2017 18:23:00 +0000 (UTC) Date: Fri, 22 Dec 2017 18:23:00 +0000 (UTC) From: "Stefan Bodewig (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (COMPRESS-432) Permanent Hang creating ZipFile(File) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 22 Dec 2017 18:23:09 -0000 [ https://issues.apache.org/jira/browse/COMPRESS-432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16301761#comment-16301761 ] Stefan Bodewig commented on COMPRESS-432: ----------------------------------------- The archive most likely is corrupt as InfoZIP's unzip says all of the entries have got CRC mismatches. Of course ZipFile shouldn't hang but rather detect the corruption. Am looking into it. > Permanent Hang creating ZipFile(File) > ------------------------------------- > > Key: COMPRESS-432 > URL: https://issues.apache.org/jira/browse/COMPRESS-432 > Project: Commons Compress > Issue Type: Bug > Components: Archivers > Affects Versions: 1.14 > Environment: Windows 10 x64, jre 1.8.0_151 > Reporter: Luis Filipe Nassif > Attachments: difflist_fsbwserver.f-secure.com_80_583109529_2.zip > > > While using Tika-1.15 and 1.17 to detect file types, it hangs when creating an instance of ZipFile with the attached corrupted zip file. Taking a thread dump shows the app is looping at the following point: > {code} > java.lang.Thread.State: RUNNABLE > at org.apache.commons.compress.archivers.zip.X0017_StrongEncryptionHeader.parseCentralDirectoryFormat(X0017_StrongEncryptionHeader.java:313) > at org.apache.commons.compress.archivers.zip.X0017_StrongEncryptionHeader.parseFromCentralDirectoryData(X0017_StrongEncryptionHeader.java:380) > at org.apache.commons.compress.archivers.zip.ExtraFieldUtils.parse(ExtraFieldUtils.java:181) > at org.apache.commons.compress.archivers.zip.ZipArchiveEntry.setCentralDirectoryExtra(ZipArchiveEntry.java:598) > at org.apache.commons.compress.archivers.zip.ZipFile.readCentralDirectoryEntry(ZipFile.java:706) > at org.apache.commons.compress.archivers.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:618) > at org.apache.commons.compress.archivers.zip.ZipFile.(ZipFile.java:290) > at org.apache.commons.compress.archivers.zip.ZipFile.(ZipFile.java:213) > at org.apache.commons.compress.archivers.zip.ZipFile.(ZipFile.java:196) > at org.apache.commons.compress.archivers.zip.ZipFile.(ZipFile.java:157) > at org.apache.tika.parser.pkg.ZipContainerDetector.detectZipFormat(ZipContainerDetector.java:132) > at org.apache.tika.parser.pkg.ZipContainerDetector.detect(ZipContainerDetector.java:88) > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)