[NTOS:MM]

- Don't accept 64 bit PE files on x86 (will cause use of uninitialized variable ImageBase). CORE-9955
- Remove a pointless check in MmMapViewOfSection

svn path=/trunk/; revision=68593
This commit is contained in:
Thomas Faber 2015-08-02 09:15:39 +00:00
parent 6828502269
commit 41ea67d64d

View file

@ -363,7 +363,9 @@ l_ReadHeaderFromFile:
switch(piohOptHeader->Magic)
{
case IMAGE_NT_OPTIONAL_HDR32_MAGIC:
#ifdef _WIN64
case IMAGE_NT_OPTIONAL_HDR64_MAGIC:
#endif // _WIN64
break;
default:
@ -4611,13 +4613,6 @@ MmMapViewOfSection(IN PVOID SectionObject,
return STATUS_SECTION_PROTECTION;
}
if (ViewSize == NULL)
{
/* Following this pointer would lead to us to the dark side */
/* What to do? Bugcheck? Return status? Do the mambo? */
KeBugCheck(MEMORY_MANAGEMENT);
}
if (SectionOffset == NULL)
{
ViewOffset = 0;