You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In results of static analyze of aspnetcore sources with Svace static analyzer I was found error of cathegory HANDLE_LEAK with message
new X509Certificate2(certificatePath, password, X509KeyStorageFlags.Exportable | X509KeyStorageFlags.EphemeralKeySet) is not disposed at the end of the function
This error was found in internal method ImportCertificate
I see, that there working with created certificate takes specific paths that include platform point, and in variable certificate it can be stored new certificate object.
In results of static analyze of aspnetcore sources with Svace static analyzer I was found error of cathegory HANDLE_LEAK with message
new X509Certificate2(certificatePath, password, X509KeyStorageFlags.Exportable | X509KeyStorageFlags.EphemeralKeySet) is not disposed at the end of the function
This error was found in internal method
ImportCertificate
aspnetcore/src/Shared/CertificateGeneration/CertificateManager.cs
Line 420 in 6ae3ea3
I see, that there working with created certificate takes specific paths that include platform point, and in variable
certificate
it can be stored new certificate object.aspnetcore/src/Shared/CertificateGeneration/CertificateManager.cs
Line 449 in 6ae3ea3
But at all, how about to add correct disposing of object?
Maybe call of
SaveCertificate
method should be like:Found by Linux Verification Center (linuxtesting.org) with SVACE.
The text was updated successfully, but these errors were encountered: