summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ldpd/labelmapping.c
diff options
context:
space:
mode:
authorbcook <bcook@openbsd.org>2016-06-30 12:17:29 +0000
committerbcook <bcook@openbsd.org>2016-06-30 12:17:29 +0000
commit81f0184cf44aca58c623858ff45e1cd13e9b4d8e (patch)
treece99528fbf6261b794cf4d8edf800713208021be /usr.sbin/ldpd/labelmapping.c
parentbump to 2.4.2 (diff)
downloadwireguard-openbsd-81f0184cf44aca58c623858ff45e1cd13e9b4d8e.tar.xz
wireguard-openbsd-81f0184cf44aca58c623858ff45e1cd13e9b4d8e.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 'usr.sbin/ldpd/labelmapping.c')
0 files changed, 0 insertions, 0 deletions