projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2075689
)
[NTOS:MM]
author
Thomas Faber
<thomas.faber@reactos.org>
Sun, 23 Apr 2017 07:24:44 +0000
(07:24 +0000)
committer
Thomas 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
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/mm/ARM3/section.c
b/reactos/ntoskrnl/mm/ARM3/section.c
index
0b008c5
..
5977fda
100644
(file)
--- 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))
{