CVSROOT:        /cvs
Module name:    src
Changes by:     bc...@cvs.openbsd.org   2016/06/30 06:17:29

Modified files:
        lib/libcrypto/crypto: arc4random_win.h 

Log message:
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@

Reply via email to