usnistgov / SP800-90B_EntropyAssessment

The SP800-90B_EntropyAssessment C++package implements the min-entropy assessment methods included in Special Publication 800-90B.
202 stars 88 forks source link

ea_conditioning has some memory leaks #211

Closed joshuaehill closed 1 year ago

joshuaehill commented 1 year ago

ea_conditioning doesn't correctly deallocate mpfr values, which causes memory leaks.

joshuaehill commented 1 year ago

In addition, there is a memory leak in the computeEntropyOfConditionedData function because data is read into a data_t structure with the read_file_subset function (which allocates a bunch of memory), but it is never released using a free_data call.