Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 44491 invoked from network); 4 May 2009 16:03:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 May 2009 16:03:52 -0000 Received: (qmail 11992 invoked by uid 500); 4 May 2009 16:03:52 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 11889 invoked by uid 500); 4 May 2009 16:03:52 -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 11879 invoked by uid 99); 4 May 2009 16:03:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 May 2009 16:03:52 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 May 2009 16:03:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 51941234C003 for ; Mon, 4 May 2009 09:03:30 -0700 (PDT) Message-ID: <329395892.1241453010319.JavaMail.jira@brutus> Date: Mon, 4 May 2009 09:03:30 -0700 (PDT) From: "Christian Grobmeier (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (COMPRESS-16) unable to extract a TAR file that contains an entry which is 10 GB in size In-Reply-To: <2126687798.1234282590062.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COMPRESS-16?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Grobmeier updated COMPRESS-16: ---------------------------------------- Attachment: patch-for-compress.txt Based on the ant patch by David Wartell I created a compress-patch. I didn't commit it till I got it tested - if somebody has > 8 gig files around, please help with testing :-) > unable to extract a TAR file that contains an entry which is 10 GB in size > -------------------------------------------------------------------------- > > Key: COMPRESS-16 > URL: https://issues.apache.org/jira/browse/COMPRESS-16 > Project: Commons Compress > Issue Type: Bug > Environment: I am using win xp sp3, but this should be platform independent. > Reporter: Sam Smith > Fix For: 1.1 > > Attachments: ant-8GB-tar.patch, patch-for-compress.txt > > > I made a TAR file which contains a file entry where the file is 10 GB in size. > When I attempt to extract the file using TarInputStream, it fails with the following stack trace: > java.io.IOException: unexpected EOF with 24064 bytes unread > at org.apache.commons.compress.archivers.tar.TarInputStream.read(TarInputStream.java:348) > at org.apache.commons.compress.archivers.tar.TarInputStream.copyEntryContents(TarInputStream.java:388) > So, TarInputStream does not seem to support large (> 8 GB?) files. > Here is something else to note: I created that TAR file using TarOutputStream , which did not complain when asked to write a 10 GB file into the TAR file, so I assume that TarOutputStream has no file size limits? That, or does it silently create corrupted TAR files (which would be the worst situation of all...)? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.