-
Bug
-
Resolution: Fixed
-
P4
-
None
-
b02
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8345704 | 17.0.15 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
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.
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.
- backported by
-
JDK-8345704 javax.crypto.CryptoPolicyParser#isConsistent always returns 'true'
-
- Resolved
-
- links to
-
Commit openjdk/jdk/8f400b9a
-
Commit(master) openjdk/jdk17u-dev/fc658cc3
-
Review openjdk/jdk/8985
-
Review(master) openjdk/jdk17u-dev/3080