From 08d575adf9ff30d8af07a3ae53b9968504121dd8 Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Sat, 11 Apr 2020 14:22:11 +0200 Subject: [PATCH] [RTL] Notify verifier when freeing the process page heap --- sdk/lib/rtl/heappage.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sdk/lib/rtl/heappage.c b/sdk/lib/rtl/heappage.c index 234cecfb65a..34a2feab298 100644 --- a/sdk/lib/rtl/heappage.c +++ b/sdk/lib/rtl/heappage.c @@ -1686,7 +1686,12 @@ RtlpPageHeapDestroy(HANDLE HeapPtr) /* Check if it's not a process heap */ if (HeapPtr == RtlGetProcessHeap()) { - DbgBreakPoint(); + VERIFIER_STOP(APPLICATION_VERIFIER_DESTROY_PROCESS_HEAP, + "attempt to destroy process heap", + HeapPtr, "Heap handle", + 0, "", + 0, "", + 0, ""); return NULL; }