dotnet / dotnet/deployment-tools
Certificate.GetContainersFromCngProvider might leak memory by not freeing enumState
Open
area-ClickOnce
up-for-grabs
- Dominant language
- C#
- Stars
- 213
- Forks
- 73
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 4
Description
### Description
The method `Certificate.GetContainersFromCngProvider` in dotnet-mage does not free the `enumState` void pointer with `NcryptMethods.NCryptFreeBuffer`. This might leak memory depending on the implementation of the crypto provider.
Contributor guide
Assessment
This issue has not been assessed yet.