ntdll: Check for delayed free block in heap_validate_ptr.
Today, the heap does not catch double free when both HEAP_VALIDATE and
HEAP_FREE_CHECKING_ENABLED are on, since validate_used_block() accepts
BLOCK_TYPE_DEAD as a valid (allocated) block type.
Fix this by adding an explicit check that rejects BLOCK_TYPE_DEAD in
heap_validate_ptr.
Showing
Please
register
or
sign in
to comment