[NTOS:MM]
authorThomas Faber <thomas.faber@reactos.org>
Sun, 23 Apr 2017 07:24:44 +0000 (07:24 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 23 Apr 2017 07:24:44 +0000 (07:24 +0000)
- 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

index 0b008c5..5977fda 100644 (file)
@@ -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))
         {