RFR: 8296741: Illegal X400Address and EDIPartyName should not be created

Weijun Wang weijun at openjdk.org
Wed Nov 9 22:38:31 UTC 2022


`EDIPartyName` should not have a null `partyName`.

Inside `X400Name` it should be a `DerValue` instead of arbitrary byte array. Note: in `GeneralSubtrees.java`, an `X400Name` is created with a null content. This would lead to an NPE anyway. A future fix might be needed.

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

Commit messages:
 - the fix

Changes: https://git.openjdk.org/jdk/pull/11071/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11071&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8296741
  Stats: 18 lines in 3 files changed: 6 ins; 7 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/11071.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/11071/head:pull/11071

PR: https://git.openjdk.org/jdk/pull/11071


More information about the security-dev mailing list