Skip to main content

IV28958: SIGNATURE.VERIFY() SHOULD THROW ILLEGALARGUMENTEXCEPTION UNDER E DGE CASE


Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: java.lang.ArrayIndexOutOfBoundsException is
    thrown when Signature.verify(byte<OSB><CSB> signature, int
    offset, int length) is called under edge case
    (offset+length>MAX_INT)
    .
    Stack Trace: java.lang.ArrayIndexOutOfBoundsException: Array
    index out of range: 2147483647
     at
    java.security.SignatureSpi.engineVerify(SignatureSpi.java:161)
     at
    java.security.SignatureSpi.engineVerify(SignatureSpi.java:161)
     at java.security.Signature.verify(Signature.java:305)
    .
    

Local fix

Problem summary

  • The bug occurs when param offset+length is greater than MAX
    INTEGER in java.  No expected IllegalArgumentException is thrown
    but instead ArrayIndexOutOfBoundsException is thrown from
    underlying security provider package.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.0 SR12
    6.0.1 SR4
    .
    Consider the overflow case for comparison condition.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV28958

  • Reported component name

    JAVA CLASS LIBS

  • Reported component ID

    620700130

  • Reported release

    600

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-09-27

  • Closed date

    2012-09-27

  • Last modified date

    2012-09-30

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    JAVA CLASS LIBS

  • Fixed component ID

    620700130

Applicable component levels

  • R600 PSY

       UP

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

Runtimes for Java Technology

Java Class Libraries


Software version:
6.0


Reference #:
IV28958


Modified date:
2012-09-30

Translate my page

Content navigation