From 3648f7752536ceed2804ce50470830920956ac18 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Fri, 11 Oct 2013 23:29:08 +0000 Subject: [PATCH] [NTOSKRNL] * Fix a potential null pointer dereference. CID 701145. * Change the ASSERT to NT_ASSERT. CORE-6681 svn path=/trunk/; revision=60624 --- reactos/ntoskrnl/mm/section.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/mm/section.c b/reactos/ntoskrnl/mm/section.c index c9cac552590..0fa9d06bfcc 100644 --- a/reactos/ntoskrnl/mm/section.c +++ b/reactos/ntoskrnl/mm/section.c @@ -4137,7 +4137,7 @@ MiRosUnmapViewOfSection(IN PEPROCESS Process, 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; } -- 2.17.1