From bcel-devemorris@example.com Thu May 13 14:18:35 2004
Return-Path: <bcel-devemorris@example.com>
Delivered-To: emorris@example.com
Received: (qmail 2054 invoked from network); 13 May 2004 14:18:35 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur-2.apache.org with SMTP; 13 May 2004 14:18:35 -0000
Received: (qmail 50475 invoked by uid 500); 13 May 2004 14:18:41 -0000
Delivered-To: emorris@example.com
Received: (qmail 50268 invoked by uid 500); 13 May 2004 14:18:39 -0000
Mailing-List: contact emorris@example.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:emorris@example.com>
List-Subscribe: <mailto:emorris@example.com>
List-Help: <mailto:emorris@example.com>
List-Post: <mailto:emorris@example.com>
List-Id: "BCEL Developers List" <bcel-dev.jakarta.apache.org>
Reply-To: "BCEL Developers List" <emorris@example.com>
Delivered-To: mailing list emorris@example.com
Received: (qmail 50177 invoked by uid 98); 13 May 2004 14:18:38 -0000
Received: from emorris@example.com by hermes.apache.org by uid 82 with qmail-scanner-1.20 
 (clamuko: 0.70.  Clear:RC:0(83.161.120.155):. 
 Processed in 0.043648 secs); 13 May 2004 14:18:38 -0000
X-Qmail-Scanner-Mail-From: emorris@example.com via hermes.apache.org
X-Qmail-Scanner: 1.20 (Clear:RC:0(83.161.120.155):. Processed in 0.043648 secs)
Received: from unknown (HELO exchange.sun.com) (83.161.120.155)
  by hermes.apache.org with SMTP; 13 May 2004 14:18:38 -0000
Received: (qmail 7168 invoked by uid 50); 13 May 2004 14:19:24 -0000
Date: 13 May 2004 14:19:24 -0000
Message-ID: <emorris@example.com>
From: emorris@example.com
To: emorris@example.com
Cc:
Subject: DO NOT REPLY [Bug 18323]  - 
    Size of LDC_W's operand can be incorrect
X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N
X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=18323>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=18323

Size of LDC_W's operand can be incorrect





------- Additional Comments From emorris@example.com  2004-05-13 14:19 -------
One example is the JDK 1.4 compiled java.math.BigInteger.  If you run:
  `javap -c java.math.BigInteger | grep ldc_w`
you will find several examples of LDC_W operands with sub-256 indices:
   401: ldc_w   #268; //int 620.262.1804
   1835:        ldc_w   #435; //String 0000000[..]
   2691:        ldc_w   #259; //int 1162261467
   2702:        ldc_w   #260; //int 1220703125
   2709:        ldc_w   #247; //int 362797056
   2716:        ldc_w   #267; //int 1977326743
   2729:        ldc_w   #248; //int 387420489
   2736:        ldc_w   #258; //int 1000000000
    ...
Without the above patch, a BCEL lifted and regenerated BigInteger will generate
the following broken classfile:
   434: ldc_w   #268; //int 620.262.1804
   1868:        ldc_w   #435; //String 0000000[..]
   2724:        ldc_w   #259; //int 1162261467
   2735:        ldc_w   #260; //int 1220703125
   2742:        ldc_w   #63311; //BOGUS_TAG:100 <Incorrect CP index:63311>
   2748:        ldc_w   #267; //int 1977326743
   2761:        ldc_w   #63567; //BOGUS_TAG:100 <Incorrect CP index:63567>
   2767:        ldc_w   #258; //int 1000000000
    ...
Note that 63311 = 247*256 + 79, and the instruction following the ldc_w is an
iastore (opcode 79).

---------------------------------------------------------------------
To unsubscribe, e-mail: emorris@example.com
For additional commands, e-mail: emorris@example.com


From bcel-devemorris@example.com Tue May 25 01:47:37 2004
Return-Path: <bcel-devemorris@example.com>
Delivered-To: emorris@example.com
Received: (qmail 30736 invoked from network); 25 May 2004 01:47:33 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur-2.apache.org with SMTP; 25 May 2004 01:47:32 -0000
Received: (qmail 69341 invoked by uid 500); 25 May 2004 01:24:10 -0000
Delivered-To: emorris@example.com
Received: (qmail 54040 invoked by uid 500); 25 May 2004 01:20:38 -0000
Mailing-List: contact emorris@example.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:emorris@example.com>
List-Subscribe: <mailto:emorris@example.com>
List-Help: <mailto:emorris@example.com>
List-Post: <mailto:emorris@example.com>
List-Id: "BCEL Developers List" <bcel-dev.jakarta.apache.org>
Reply-To: "BCEL Developers List" <emorris@example.com>
Delivered-To: mailing list emorris@example.com
Received: (qmail 40770 invoked by uid 98); 25 May 2004 01:17:15 -0000
Received: from emorris@example.com by hermes.apache.org by uid 82 with qmail-scanner-1.20 
 (clamuko: 0.70.  Clear:RC:0(83.161.120.155):. 
 Processed in 0.09549 secs); 25 May 2004 01:17:15 -0000
X-Qmail-Scanner-Mail-From: emorris@example.com via hermes.apache.org
X-Qmail-Scanner: 1.20 (Clear:RC:0(83.161.120.155):. Processed in 0.09549 secs)
Received: from unknown (HELO ?83.161.120.155?) (83.161.120.155)
  by hermes.apache.org with SMTP; 25 May 2004 01:17:14 -0000
Date: 25 May 04 01:15:55
From: Jason van Zyl <emorris@example.com>
To: emorris@example.com
Subject: [GUMP@brutus]: jakarta-bcel/jakarta-bcel prerequisite failed
X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N
X-Qmail-Scanner-Message-ID: <emorris@example.com>
X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N

To whom it may satisfy...
        
This is an automated request, but not an unsolicited one. For 
more information please visit http://gump.apache.org/nagged.html, 
and/or contact folk at emorris@example.com.

Project jakarta-bcel *no longer* has an issue.
Project State : 'Prerequisite Failed', Reason 'Build Failed'

Full details are available at:

    http://brutus.apache.org:8080/gump/jakarta-bcel/jakarta-bcel/index.html

That said, some snippets follow:


The following annotations were provided:
 -INFO- Sole jar [bcel.jar] identifier set to project name
 -INFO- Prerequisite failed with reason build failed



To subscribe to this information via syndicated feeds:
 RSS: http://brutus.apache.org:8080/gump/jakarta-bcel/jakarta-bcel/rss.xml
 Atom: http://brutus.apache.org:8080/gump/jakarta-bcel/jakarta-bcel/atom.xml


--
Produced by Gump 2.0.3-alpha-0002.
[Run (20040524 15:00:12, brutus:brutus-public:20040524 15:00:12)]
http://brutus.apache.org:8080/gump/index.html
http://brutus.apache.org:8080/gump/options.html

--
Apache Gump
http://gump.apache.org/ [Instance: brutus]

---------------------------------------------------------------------
To unsubscribe, e-mail: emorris@example.com
For additional commands, e-mail: emorris@example.com


From bcel-devemorris@example.com Fri May 28 12:04:17 2004
Return-Path: <bcel-devemorris@example.com>
Delivered-To: emorris@example.com
Received: (qmail 49745 invoked from network); 28 May 2004 12:04:17 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur-2.apache.org with SMTP; 28 May 2004 12:04:17 -0000
Received: (qmail 66658 invoked by uid 500); 28 May 2004 12:04:01 -0000
Delivered-To: emorris@example.com
Received: (qmail 66301 invoked by uid 500); 28 May 2004 12:03:56 -0000
Mailing-List: contact emorris@example.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:emorris@example.com>
List-Subscribe: <mailto:emorris@example.com>
List-Help: <mailto:emorris@example.com>
List-Post: <mailto:emorris@example.com>
List-Id: "BCEL Developers List" <bcel-dev.jakarta.apache.org>
Reply-To: "BCEL Developers List" <emorris@example.com>
Delivered-To: mailing list emorris@example.com
Received: (qmail 66189 invoked by uid 98); 28 May 2004 12:03:55 -0000
Received: from emorris@example.com by hermes.apache.org by uid 82 with qmail-scanner-1.20 
 (clamuko: 0.70.  Clear:RC:0(83.161.120.155):. 
 Processed in 0.236715 secs); 28 May 2004 12:03:55 -0000
X-Qmail-Scanner-Mail-From: emorris@example.com via hermes.apache.org
X-Qmail-Scanner: 1.20 (Clear:RC:0(83.161.120.155):. Processed in 0.236715 secs)
Received: from unknown (HELO exchange.sun.com) (83.161.120.155)
  by hermes.apache.org with SMTP; 28 May 2004 12:03:54 -0000
Received: (qmail 10821 invoked by uid 50); 28 May 2004 12:04:53 -0000
Date: 28 May 2004 12:04:53 -0000
Message-ID: <emorris@example.com>
From: emorris@example.com
To: emorris@example.com
Cc:
Subject: DO NOT REPLY [Bug 29275] New:  - 
    Corrupted instruction list created on valid class file
X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N
X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29275>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29275

Corrupted instruction list created on valid class file

           Summary: Corrupted instruction list created on valid class file
           Product: BCEL
           Version: 5.1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Main
        AssignedTo: emorris@example.com
        ReportedBy: emorris@example.com


The list created from a classfile can be suddenly meaningless:

bcel fails to create a valid instruction list if one of the instruction
is an LDC_W with a short (<256) index. In that case the following
instruction is taken at an address with an offset error of -1 byte.

---------------------------------------------------------------------
To unsubscribe, e-mail: emorris@example.com
For additional commands, e-mail: emorris@example.com


From bcel-devemorris@example.com Fri May 28 12:06:53 2004
Return-Path: <bcel-devemorris@example.com>
Delivered-To: emorris@example.com
Received: (qmail 50640 invoked from network); 28 May 2004 12:06:53 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur-2.apache.org with SMTP; 28 May 2004 12:06:53 -0000
Received: (qmail 77800 invoked by uid 500); 28 May 2004 12:06:54 -0000
Delivered-To: emorris@example.com
Received: (qmail 77776 invoked by uid 500); 28 May 2004 12:06:54 -0000
Mailing-List: contact emorris@example.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:emorris@example.com>
List-Subscribe: <mailto:emorris@example.com>
List-Help: <mailto:emorris@example.com>
List-Post: <mailto:emorris@example.com>
List-Id: "BCEL Developers List" <bcel-dev.jakarta.apache.org>
Reply-To: "BCEL Developers List" <emorris@example.com>
Delivered-To: mailing list emorris@example.com
Received: (qmail 77753 invoked by uid 98); 28 May 2004 12:06:53 -0000
Received: from emorris@example.com by hermes.apache.org by uid 82 with qmail-scanner-1.20 
 (clamuko: 0.70.  Clear:RC:0(83.161.120.155):. 
 Processed in 0.134207 secs); 28 May 2004 12:06:53 -0000
X-Qmail-Scanner-Mail-From: emorris@example.com via hermes.apache.org
X-Qmail-Scanner: 1.20 (Clear:RC:0(83.161.120.155):. Processed in 0.134207 secs)
Received: from unknown (HELO exchange.sun.com) (83.161.120.155)
  by hermes.apache.org with SMTP; 28 May 2004 12:06:53 -0000
Received: (qmail 10991 invoked by uid 50); 28 May 2004 12:07:51 -0000
Date: 28 May 2004 12:07:51 -0000
Message-ID: <emorris@example.com>
From: emorris@example.com
To: emorris@example.com
Cc:
Subject: DO NOT REPLY [Bug 29275]  - 
    Corrupted instruction list created on valid class file
X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N
X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29275>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29275

Corrupted instruction list created on valid class file





------- Additional Comments From emorris@example.com  2004-05-28 12:07 -------
Please, consider using the following patch to bcel/generic/LDC_W.java:

--- LDC_W.old   Fri May 28 13:58:17 2004
+++ LDC_W.java  Fri May 28 13:58:13 2004
@@ -84,5 +84,6 @@
     setIndex(bytes.readUnsignedShort());
     // Override just in case it has been changed
     opcode = org.apache.bcel.Constants.LDC_W;
+    length=3;
   }
 }

---------------------------------------------------------------------
To unsubscribe, e-mail: emorris@example.com
For additional commands, e-mail: emorris@example.com


From bcel-devemorris@example.com Fri May 28 12:16:50 2004
Return-Path: <bcel-devemorris@example.com>
Delivered-To: emorris@example.com
Received: (qmail 55976 invoked from network); 28 May 2004 12:16:50 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur-2.apache.org with SMTP; 28 May 2004 12:16:50 -0000
Received: (qmail 12038 invoked by uid 500); 28 May 2004 12:16:52 -0000
Delivered-To: emorris@example.com
Received: (qmail 12015 invoked by uid 500); 28 May 2004 12:16:52 -0000
Mailing-List: contact emorris@example.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:emorris@example.com>
List-Subscribe: <mailto:emorris@example.com>
List-Help: <mailto:emorris@example.com>
List-Post: <mailto:emorris@example.com>
List-Id: "BCEL Developers List" <bcel-dev.jakarta.apache.org>
Reply-To: "BCEL Developers List" <emorris@example.com>
Delivered-To: mailing list emorris@example.com
Received: (qmail 11995 invoked by uid 98); 28 May 2004 12:16:52 -0000
Received: from emorris@example.com by hermes.apache.org by uid 82 with qmail-scanner-1.20 
 (clamuko: 0.70.  Clear:RC:0(83.161.120.155):. 
 Processed in 0.029326 secs); 28 May 2004 12:16:52 -0000
X-Qmail-Scanner-Mail-From: emorris@example.com via hermes.apache.org
X-Qmail-Scanner: 1.20 (Clear:RC:0(83.161.120.155):. Processed in 0.029326 secs)
Received: from unknown (HELO exchange.sun.com) (83.161.120.155)
  by hermes.apache.org with SMTP; 28 May 2004 12:16:52 -0000
Received: (qmail 11810 invoked by uid 50); 28 May 2004 12:17:51 -0000
Date: 28 May 2004 12:17:51 -0000
Message-ID: <emorris@example.com>
From: emorris@example.com
To: emorris@example.com
Cc:
Subject: DO NOT REPLY [Bug 29275]  - 
    Corrupted instruction list created on valid class file
X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N
X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29275>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29275

Corrupted instruction list created on valid class file





------- Additional Comments From emorris@example.com  2004-05-28 12:17 -------
Final comment: a compiler should not create on its own a LDC_W instruction
if an LDC was enough but the code that triggered the bug was obfuscated to
compress it. Then an offset that was "long" becomes "short". Obfuscators prefer
not to change the rest of the code so they let the initial LDC_W instruction.

---------------------------------------------------------------------
To unsubscribe, e-mail: emorris@example.com
For additional commands, e-mail: emorris@example.com



{'source': 'Apache Software Foundation Public Mail Archives'}