RFR: JDK-8293093 NPE in P11KeyStore.getID [v2]

Mark Powers mpowers at openjdk.org
Tue Oct 25 18:58:54 UTC 2022


On Tue, 25 Oct 2022 17:56:10 GMT, Xue-Lei Andrew Fan <xuelei at openjdk.org> wrote:

>> Thanks Tony!
>
> @mcpowers Did you want to update line line 203-207 as well?  It might be safe to remove the current getID(byte[]) method.  If the parameter is null, there is an NPE (unexpected); otherwise, the new method should be safe to use.

@XueleiFan Lines 204 and 206 can't be collapsed into a single call to getIDNullSafe because of square brackets in the output on line 204. I don't want to change existing output in any way. Perhaps I'm not understanding your question.

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

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



More information about the security-dev mailing list