Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 67392 invoked from network); 13 Feb 2008 17:09:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Feb 2008 17:09:31 -0000 Received: (qmail 71541 invoked by uid 500); 13 Feb 2008 17:09:25 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 71447 invoked by uid 500); 13 Feb 2008 17:09:25 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 71438 invoked by uid 99); 13 Feb 2008 17:09:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2008 09:09:25 -0800 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.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2008 17:08:48 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8E26E714075 for ; Wed, 13 Feb 2008 09:09:08 -0800 (PST) Message-ID: <4981856.1202922548579.JavaMail.jira@brutus> Date: Wed, 13 Feb 2008 09:09:08 -0800 (PST) From: "Andrew Cornwall (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-5507) [pack200][classlib] LocalVariableTableAttribute localVariableTableSpanO can be negative In-Reply-To: <5354136.1202922428993.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-5507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Cornwall updated HARMONY-5507: ------------------------------------- Attachment: mypack.pack > [pack200][classlib] LocalVariableTableAttribute localVariableTableSpanO can be negative > --------------------------------------------------------------------------------------- > > Key: HARMONY-5507 > URL: https://issues.apache.org/jira/browse/HARMONY-5507 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: All Pack200 > Reporter: Andrew Cornwall > Attachments: mypack.pack > > > Unpacking the attached mypack.pack test case, I get an exception: > Thread [main] (Suspended (exception ArrayIndexOutOfBoundsException)) > ArrayList.get(int) line: 324 > LocalVariableTableAttribute.renumber(List) line: 139 > BcBands.unpack(InputStream) line: 407 > Segment.parseSegment(InputStream) line: 325 > Segment.parse(InputStream) line: 92 > Unpack.main(String[]) line: 36 > This appears to be happening because LocalVariableTableAttribute.lengths[0] == -1107. This is a value passed into LocalVariableTableAttribute(int, int[], int[], CPUTF8[], CPUTF8[], int[]) by ClassBands.parseCodeAttrBands(InputStream, int) . > I think the decode of this value computed by: > int[][] localVariableTableSpanO = decodeBandInt( > "code_LocalVariableTable_span_O", in, Codec.BRANCH5, > localVariableTableN); > is not quite right. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.