usnistgov / SP800-90B_EntropyAssessment

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

LRS test initializes the wrong amount of data #117

Closed joshuaehill closed 5 years ago

joshuaehill commented 5 years ago

The memset in the LRS predictor is initializing exactly 32 bytes, rather than the whole array. My fingers were clearly set to "automatic", and I typed "sizeof" rather than "size_t".

This shouldn't change results, as A is initialized as it is generated, but this could cause a heap overflow if v is small.