mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 01:12:06 +00:00
[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:
parent
6828502269
commit
41ea67d64d
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue