Author: akhaldi
Date: Fri Oct 11 23:29:08 2013
New Revision: 60624
URL:
http://svn.reactos.org/svn/reactos?rev=60624&view=rev
Log:
[NTOSKRNL]
* Fix a potential null pointer dereference. CID 701145.
* Change the ASSERT to NT_ASSERT.
CORE-6681
Modified:
trunk/reactos/ntoskrnl/mm/section.c
Modified: trunk/reactos/ntoskrnl/mm/section.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/section.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] Fri Oct 11 23:29:08 2013
@@ -4137,7 +4137,7 @@
MemoryArea->Type != MEMORY_AREA_SECTION_VIEW ||
MemoryArea->DeleteInProgress)
{
- ASSERT(MemoryArea->Type != MEMORY_AREA_OWNED_BY_ARM3);
+ if (MemoryArea) NT_ASSERT(MemoryArea->Type != MEMORY_AREA_OWNED_BY_ARM3);
MmUnlockAddressSpace(AddressSpace);
return STATUS_NOT_MAPPED_VIEW;
}