Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 65617 invoked from network); 1 Jun 2010 14:51:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Jun 2010 14:51:05 -0000 Received: (qmail 8965 invoked by uid 500); 1 Jun 2010 14:51:05 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 8876 invoked by uid 500); 1 Jun 2010 14:51:04 -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 8868 invoked by uid 99); 1 Jun 2010 14:51:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jun 2010 14:51:04 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jun 2010 14:51:02 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o51Eoe3l019073 for ; Tue, 1 Jun 2010 14:50:40 GMT Message-ID: <21812028.105151275403840859.JavaMail.jira@thor> Date: Tue, 1 Jun 2010 10:50:40 -0400 (EDT) From: "Sebb (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (COMPRESS-113) TarArchiveEntry.parseTarHeader() includes the trailing space/NUL when parsing the octal size In-Reply-To: <8465870.19841273764643596.JavaMail.jira@thor> 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-113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12874038#action_12874038 ] Sebb commented on COMPRESS-113: ------------------------------- Just discovered that one also needs to allow for fields which are not in the original tar formats. For example devmajor, devminor - these fields will be all null. > TarArchiveEntry.parseTarHeader() includes the trailing space/NUL when parsing the octal size > -------------------------------------------------------------------------------------------- > > Key: COMPRESS-113 > URL: https://issues.apache.org/jira/browse/COMPRESS-113 > Project: Commons Compress > Issue Type: Bug > Affects Versions: 1.0 > Reporter: Sebb > Fix For: 1.1 > > > TarArchiveEntry.parseTarHeader() includes the trailing space/NUL when parsing the octal size. > Although the size field in the header is 12 bytes, the last byte is supposed to be space or NUL - i.e. only 11 octal digits are allowed for the size. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.