From bcel-dev-return-445-qmlist-jakarta-archive-bcel-dev=nagoya.apache.org@jakarta.apache.org Tue Mar 25 15:42:02 2003 Return-Path: Delivered-To: apmail-jakarta-bcel-dev-archive@apache.org Received: (qmail 93239 invoked from network); 25 Mar 2003 15:42:01 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 25 Mar 2003 15:42:01 -0000 Received: (qmail 4398 invoked by uid 97); 25 Mar 2003 15:43:48 -0000 Delivered-To: qmlist-jakarta-archive-bcel-dev@nagoya.betaversion.org Received: (qmail 4391 invoked from network); 25 Mar 2003 15:43:48 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 25 Mar 2003 15:43:48 -0000 Received: (qmail 91688 invoked by uid 500); 25 Mar 2003 15:41:38 -0000 Mailing-List: contact bcel-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "BCEL Developers List" Reply-To: "BCEL Developers List" Delivered-To: mailing list bcel-dev@jakarta.apache.org Received: (qmail 91628 invoked from network); 25 Mar 2003 15:41:37 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 25 Mar 2003 15:41:37 -0000 Received: (qmail 4371 invoked by uid 50); 25 Mar 2003 15:43:25 -0000 Date: 25 Mar 2003 15:43:25 -0000 Message-ID: <20030325154325.4370.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: bcel-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 18323] New: - Size of LDC_W's operand can be incorrect X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.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 . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18323 Size of LDC_W's operand can be incorrect Summary: Size of LDC_W's operand can be incorrect Product: BCEL Version: unspecified Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: Main AssignedTo: bcel-dev@jakarta.apache.org ReportedBy: nova@to.email.ne.jp When MethodGen read LDC_W whose index is less than 256 and dumps it, the size of its operand becomes incorrect. LDC_W's setIndex method can change both the opcode and the length. But after the invocation initFromFile method change the opcode OR the length. And its dump method determines the operand's size by the length. As a result that can make a mismatch b/w an opcode and an operand. LDC_W.java 1.1.1.1 and 1.3 has this problem. A scenario(in case of LDC_W.java 1.3): 1. Suppose a LDC_W whose index is less than 256 2. initFromFile method sets the opcode to LDC_W and the length to 2. 3. dump method writes a LDC_W but it writes a byte as the operand. I think that 1.2 has no problem. Another solution is as follows. --- LDC_W.java.1.1.1.1 Sat Dec 15 21:40:41 2001 +++ LDC_W.java Wed Mar 26 00:36:01 2003 @@ -82,6 +82,6 @@ throws IOException { setIndex(bytes.readUnsignedShort()); - length = 3; + //length = 3; } } --------------------------------------------------------------------- To unsubscribe, e-mail: bcel-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: bcel-dev-help@jakarta.apache.org