Author: tfaber
Date: Tue Aug 9 07:28:02 2016
New Revision: 72161
URL:
http://svn.reactos.org/svn/reactos?rev=72161&view=rev
Log:
[NTOS:MM]
- In debug builds, invalidate the MEMORY_AREA's Magic on destroy to catch potential
uses after free
Modified:
trunk/reactos/ntoskrnl/mm/marea.c
Modified: trunk/reactos/ntoskrnl/mm/marea.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/marea.c?rev=72…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/marea.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/marea.c [iso-8859-1] Tue Aug 9 07:28:02 2016
@@ -378,6 +378,9 @@
}
}
+#if DBG
+ MemoryArea->Magic = 'daeD';
+#endif
ExFreePoolWithTag(MemoryArea, TAG_MAREA);
DPRINT("MmFreeMemoryAreaByNode() succeeded\n");