RFR: 8304136: Match allocation and free in sspi.cpp
Weijun Wang
weijun at openjdk.org
Tue Mar 14 14:10:55 UTC 2023
After this change, `gss_buffer_t` always uses `malloc` and `free`. All others use `new` and `delete`. It also initializes several `SecBuffer` to zeroes so it's safe to check for null when trying to free them.
-------------
Commit messages:
- the fix
Changes: https://git.openjdk.org/jdk/pull/13018/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=13018&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8304136
Stats: 32 lines in 1 file changed: 12 ins; 3 del; 17 mod
Patch: https://git.openjdk.org/jdk/pull/13018.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/13018/head:pull/13018
PR: https://git.openjdk.org/jdk/pull/13018
More information about the security-dev
mailing list