Skip to content

Commit 08d575a

Browse files
committed
[RTL] Notify verifier when freeing the process page heap
1 parent 5821136 commit 08d575a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sdk/lib/rtl/heappage.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1686,7 +1686,12 @@ RtlpPageHeapDestroy(HANDLE HeapPtr)
16861686
/* Check if it's not a process heap */
16871687
if (HeapPtr == RtlGetProcessHeap())
16881688
{
1689-
DbgBreakPoint();
1689+
VERIFIER_STOP(APPLICATION_VERIFIER_DESTROY_PROCESS_HEAP,
1690+
"attempt to destroy process heap",
1691+
HeapPtr, "Heap handle",
1692+
0, "",
1693+
0, "",
1694+
0, "");
16901695
return NULL;
16911696
}
16921697

0 commit comments

Comments
 (0)