summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/crypto/arc4random_solaris.h
diff options
context:
space:
mode:
authorbcook <>2016-06-30 12:17:29 +0000
committerbcook <>2016-06-30 12:17:29 +0000
commitfafc8dbf4d3bb9d3105c9575a1536623d00a3eca (patch)
tree1befc101a690cd02f9a8dd0a47bdc267d399819f /src/lib/libcrypto/crypto/arc4random_solaris.h
parent5bfca97f9b3e68d1e83fcb3a5ade7b35c3b95e32 (diff)
downloadopenbsd-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_solaris.h')
0 files changed, 0 insertions, 0 deletions