dotnet / dotnet/deployment-tools

Certificate.GetContainersFromCngProvider might leak memory by not freeing enumState

Open
#310 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.