[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
This commit is contained in:
Thomas Faber 2017-04-23 07:24:44 +00:00
parent 20756892b7
commit e570b43842

View 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))
{