RFR: 8282316: Operation before String case conversion

Xue-Lei Andrew Fan xuelei at openjdk.java.net
Wed Feb 23 19:31:18 UTC 2022


In the SignatureUtil implementation, the checkName() requires case-insensitive input for "OID".  However, the method is called before the case conversion, for example: 

            sigName = checkName(sigName).toUpperCase(Locale.ENGLISH); 

This update also clean up redundant calls to the checkName() method.

-------------

Commit messages:
 - 8282316: Operation before String case conversion

Changes: https://git.openjdk.java.net/jdk/pull/7598/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=7598&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8282316
  Stats: 21 lines in 1 file changed: 10 ins; 2 del; 9 mod
  Patch: https://git.openjdk.java.net/jdk/pull/7598.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/7598/head:pull/7598

PR: https://git.openjdk.java.net/jdk/pull/7598



More information about the security-dev mailing list