HomePhabricator

Allocate more space if necessary in RandSeedAddPerfMon
8ae973c00cfbUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Allocate more space if necessary in RandSeedAddPerfMon

Currently we use a fixed buffer of 250000 bytes to request
HKEY_PERFORMANCE_DATA. In many cases this is not enough, causing the
entropy collection to be skipped.

Use a loop that grows the buffer as specified in the RegQueryValueEx
documentation:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms724911%28v=vs.85%29.aspx

(as the size of the performance data can differ for every call, the
normal solution of requesting the size then allocating that can't work)

Details

Provenance
Wladimir J. van der Laan <laanwj@gmail.com>Authored on Jun 24 2014, 13:27
deadalnixPushed on May 14 2017, 22:04
Parents
rABCbe873f64540d: Issue warning if collecting RandSeed data failed
Branches
Unknown
Tags
Unknown

Event Timeline

Wladimir J. van der Laan <laanwj@gmail.com> committed rABC8ae973c00cfb: Allocate more space if necessary in RandSeedAddPerfMon (authored by Wladimir J. van der Laan <laanwj@gmail.com>).Jun 26 2014, 13:15