-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 25, 26, 27
-
Component/s: security-libs
-
None
-
b07
-
generic
-
os_x
In KeystoreImpl.m we use CFArrayCreateMutable, but we do not always CFRelease the resources we created.
This should be adjusted.
When looking at the same file, seems privateKeyRef from
SecKeyRef privateKeyRef;
err = SecIdentityCopyPrivateKey(theIdentity, &privateKeyRef);
https://github.com/openjdk/jdk/blob/5ba91fed345b078a67ad6bead1d8893bd9289f58/src/java.base/macosx/native/libosxsecurity/KeystoreImpl.m#L343
needs to be CFReleased too according to
https://developer.apple.com/documentation/security/secidentitycopyprivatekey(_:_:)
This should be adjusted.
When looking at the same file, seems privateKeyRef from
SecKeyRef privateKeyRef;
err = SecIdentityCopyPrivateKey(theIdentity, &privateKeyRef);
https://github.com/openjdk/jdk/blob/5ba91fed345b078a67ad6bead1d8893bd9289f58/src/java.base/macosx/native/libosxsecurity/KeystoreImpl.m#L343
needs to be CFReleased too according to
https://developer.apple.com/documentation/security/secidentitycopyprivatekey(_:_:)
- relates to
-
JDK-8376300 Avoid more leaks in KeystoreImpl.m because of missing CFRelease calls
-
- Open
-
- links to
-
Commit(master)
openjdk/jdk/0f1b96a5
-
Review(master)
openjdk/jdk/29326