https://issues.apache.org/bugzilla/show_bug.cgi?id=44876

           Summary: ArrayIndexOutOfBoundsException thrown from
                    TABLESWITCH.initFromFile
           Product: BCEL
           Version: 5.2
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Keywords: PatchAvailable
          Severity: normal
          Priority: P2
         Component: Main
        AssignedTo: bcel-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


Created an attachment (id=21856)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=21856)
Proposed patch

BCEL throws the ArrayIndexOutOfBoundsException when trying to construct a new
org.apache.bcel.generic.MethodGen on a method containing the bytes compiled
from the following code:

switch (i) {
  case Integer.MAX_VALUE:
    break;
  default:
    b = true;
}

The method that does not handle this corner case correctly is
org.apache.bcel.generic.TABLESWITCH.initFromFile(ByteSequence, boolean).


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to