You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by "Stepan Mishura (JIRA)" <ji...@apache.org> on 2006/03/07 10:35:38 UTC

[jira] Created: (HARMONY-186) X509CertSelector.match throws ArrayIndexOutOfBoundsException when checks keyUsage criterion

X509CertSelector.match throws ArrayIndexOutOfBoundsException when checks keyUsage criterion
-------------------------------------------------------------------------------------------

         Key: HARMONY-186
         URL: http://issues.apache.org/jira/browse/HARMONY-186
     Project: Harmony
        Type: Bug
  Components: Classlib  
    Reporter: Stepan Mishura


According to the spec. of X509Certificate and X509CertSelector classes KeyUsage extension is represented by array of boolean values.
But the spec. doesn't specify any restrictions on the array so instances of X509Certificate and X509CertSelector classes may have arrays of different length to be matched. If a certificate's array is longer then a selector's array then invocation of method X509CertSelector.match(java.security.cert.Certificate) throws ArrayIndexOutOfBoundsException.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (HARMONY-186) X509CertSelector.match throws ArrayIndexOutOfBoundsException when checks keyUsage criterion

Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-186?page=all ]

Stepan Mishura updated HARMONY-186:
-----------------------------------

    Attachment: fixHarmony186.txt

Patch includes bug fix and regression test

> X509CertSelector.match throws ArrayIndexOutOfBoundsException when checks keyUsage criterion
> -------------------------------------------------------------------------------------------
>
>          Key: HARMONY-186
>          URL: http://issues.apache.org/jira/browse/HARMONY-186
>      Project: Harmony
>         Type: Bug
>   Components: Classlib
>     Reporter: Stepan Mishura
>  Attachments: fixHarmony186.txt
>
> According to the spec. of X509Certificate and X509CertSelector classes KeyUsage extension is represented by array of boolean values.
> But the spec. doesn't specify any restrictions on the array so instances of X509Certificate and X509CertSelector classes may have arrays of different length to be matched. If a certificate's array is longer then a selector's array then invocation of method X509CertSelector.match(java.security.cert.Certificate) throws ArrayIndexOutOfBoundsException.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira