From e570b438426ee8b932b322cf5f0ff82b7c318fbd Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sun, 23 Apr 2017 07:24:44 +0000 Subject: [PATCH] [NTOS:MM] - Check for ROS section object before accessing the AllocationAttributes member in NtMapViewOfSection, since ARM3 sections use a different structure. CORE-13113 svn path=/trunk/; revision=74389 --- reactos/ntoskrnl/mm/ARM3/section.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/mm/ARM3/section.c b/reactos/ntoskrnl/mm/ARM3/section.c index 0b008c50574..5977fda4a89 100644 --- a/reactos/ntoskrnl/mm/ARM3/section.c +++ b/reactos/ntoskrnl/mm/ARM3/section.c @@ -3716,7 +3716,8 @@ NtMapViewOfSection(IN HANDLE SectionHandle, if (NT_SUCCESS(Status)) { /* Check if this is an image for the current process */ - if ((Section->AllocationAttributes & SEC_IMAGE) && + if (MiIsRosSectionObject(Section) && + (Section->AllocationAttributes & SEC_IMAGE) && (Process == PsGetCurrentProcess()) && (Status != STATUS_IMAGE_NOT_AT_BASE)) {