[jdk11u-dev] RFR: 8285696: AlgorithmConstraints:permits not throwing IllegalArgumentException when 'alg' is null [v2]
Goetz Lindenmaier
goetz at openjdk.org
Mon Jun 27 10:57:58 UTC 2022
On Fri, 24 Jun 2022 11:30:22 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:
>> Goetz Lindenmaier has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Update DisabledAlgorithmConstraints.java
>>
>> Implementing Daniels comments. Thanks for catching this!
>
> src/java.base/share/classes/sun/security/util/DisabledAlgorithmConstraints.java line 162:
>
>> 160: return false;
>> 161: }
>> 162: if (algorithm == null || algorithm.isEmpty()) {
>
> The check for null algorithm needs to happen before `cachedCheckAlgorithm` is called
Fixed. Thanks for catching this!
-------------
PR: https://git.openjdk.org/jdk11u-dev/pull/1182
More information about the jdk-updates-dev
mailing list