[3/4] ntdll: support HEAP_TAIL_CHECKING_ENABLED-style heap overrun checking.

Dan Kegel dank at kegel.com
Tue Nov 24 20:13:44 CST 2009


This is also fairly cheap, it just adds eight bytes to the end
of each allocation.  (It'll work even when allocations
don't have any padding for
HEAP_FREE_CHECKING_ENABLED
to check.)

I should mention: all of this heap checking stuff is
controlled by the registry entry
[HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session Manager]
"GlobalFlag"=dword:XXXXXXX.

The tests in ntdll/tests/heap.c will print out
how to enable the checks if they're not enabled.
Setting that registry entry to
30 will turn on both FREE and TAIL checking.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-ntdll-support-HEAP_TAIL_CHECKING_ENABLED-style-heap.patch
Type: text/x-patch
Size: 12458 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20091124/bf55d2b3/attachment.bin>


More information about the wine-patches mailing list