RFR: 8325680: Uninitialised memory in deleteGSSCB of GSSLibStub.c:179

Mark Powers mpowers at openjdk.org
Tue Feb 27 16:39:51 UTC 2024


On Mon, 26 Feb 2024 22:33:03 GMT, Weijun Wang <weijun at openjdk.org> wrote:

> Add a `memset` after memory is successfully allocated.
> 
> No regression test, hard to write without a KDC.

Why do you have to set memory to zero?
If you really need to, `calloc()` sets memory to zero.

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

PR Comment: https://git.openjdk.org/jdk/pull/18015#issuecomment-1967022066



More information about the security-dev mailing list