diff options
author | bcook <> | 2016-06-30 12:17:29 +0000 |
---|---|---|
committer | bcook <> | 2016-06-30 12:17:29 +0000 |
commit | fafc8dbf4d3bb9d3105c9575a1536623d00a3eca (patch) | |
tree | 1befc101a690cd02f9a8dd0a47bdc267d399819f /src/lib/libcrypto/crypto/arc4random_linux.h | |
parent | 5bfca97f9b3e68d1e83fcb3a5ade7b35c3b95e32 (diff) | |
download | openbsd-fafc8dbf4d3bb9d3105c9575a1536623d00a3eca.tar.gz openbsd-fafc8dbf4d3bb9d3105c9575a1536623d00a3eca.tar.bz2 openbsd-fafc8dbf4d3bb9d3105c9575a1536623d00a3eca.zip |
Tighten behavior of _rs_allocate on Windows.
For Windows, we are simply using calloc, which has two annoyances:
the memory has more permissions than needed by default, and it comes
from the process heap, which looks like a memory leak since this memory
is rightfully never freed.
This switches _rs_alloc on Windows to use VirtualAlloc, which restricts the
memory to READ|WRITE and keeps the memory out of the process heap.
ok deraadt@
Diffstat (limited to 'src/lib/libcrypto/crypto/arc4random_linux.h')
0 files changed, 0 insertions, 0 deletions