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

javax.crypto.CryptoPolicyParser#isConsistent always returns 'true'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 20
    • Component/s: security-libs
    • Labels:

      Description

      I found a suspicious code in CryptoPolicyParser method calls.

      Method 'isConsistent' is called only from a method
      'parsePermissionEntry'. It accepts the 'processedPermissions'
      parameter from 'parsePermissionEntry'.
      Method 'parsePermissionEntry' is called only from a method
      'parseGrantEntry'. It accepts the 'processedPermissions' parameter
      from 'parseGrantEntry'.
      Method 'parseGrantEntry' is called only from a method 'read' and
      always with null value of parameter 'processedPermissions'.

      So, it seems in method 'isConsistent' value of parameter
      'processedPermissions' will always be 'null'. And the method will
      always return true.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              hchao Haimay Chao
              Reporter:
              aturbanov Andrey Turbanov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: