Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8172244

AIOOBE in KeyStore.getCertificateAlias on Windows

XMLWordPrintable

    • b09
    • generic
    • windows

      FULL PRODUCT VERSION :
      1.8.0_102-b14, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
      1.8.0_111-b14, Oracle Corporation, Java HotSpot(TM) Client VM

      ADDITIONAL OS VERSION INFORMATION :
      Windows 10 64-Bit

      A DESCRIPTION OF THE PROBLEM :
      This is an upstream bug report for:
      https://josm.openstreetmap.de/ticket/13855
      https://josm.openstreetmap.de/ticket/13862
      https://josm.openstreetmap.de/ticket/14154

      (please add josm-found label as per Quality Outreach)

      Three of our users encountered an ArrayIndexOutOfBoundsException on Windows 10, with JRE 8u102 (64-bit) and 8u111 (32-bit).

      The stacktrace is:
      java.lang.ArrayIndexOutOfBoundsException: 0
      at sun.security.mscapi.KeyStore.engineGetCertificateAlias(KeyStore.java:634)
      at sun.security.mscapi.KeyStore$ROOT.engineGetCertificateAlias(KeyStore.java:61)
      at java.security.KeyStore.getCertificateAlias(Unknown Source)

      KeyStore.getCertificateAlias is not supposed to throw this exception but return null is the supplied argument is not found.

      We think this is maybe related to JDK-8139436 / JDK-8148848 but the issue happens with JRE that should include the fix.


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      java.lang.ArrayIndexOutOfBoundsException: 0
      at sun.security.mscapi.KeyStore.engineGetCertificateAlias(KeyStore.java:634)
      at sun.security.mscapi.KeyStore$ROOT.engineGetCertificateAlias(KeyStore.java:61)
      at java.security.KeyStore.getCertificateAlias(Unknown Source)

      REPRODUCIBILITY :
      This bug can be reproduced occasionally.

            apetcher Adam Petcher (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: