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

SunPKCS11's SecureRandom#nextBytes(byte[]) accepts null argument

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: security-libs
    • Labels:
      None

      Description

      Most SecureRandom implementations throw an NPE when nextBytes(null) is called, but not the one from SunPKCS11 where it's silently ignored. We might want to specify and enforce at the API level that an NPE should be thrown.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              weijun Weijun Wang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: