mirror of
https://github.com/reactos/reactos.git
synced 2025-05-18 16:51:18 +00:00
[NTOS]: Check that MaximumSize is valid value if the section is being backed by paging file.
svn path=/trunk/; revision=50081
This commit is contained in:
parent
2b69f5fa2c
commit
604d4c9de8
1 changed files with 4 additions and 0 deletions
|
@ -1440,6 +1440,10 @@ NtCreateSection(OUT PHANDLE SectionHandle,
|
|||
}
|
||||
else if (!MaximumSize) MaximumSize = &SafeMaximumSize;
|
||||
|
||||
/* Check that MaximumSize is valid if backed by paging file */
|
||||
if ((!FileHandle) && (!MaximumSize->QuadPart))
|
||||
return STATUS_INVALID_PARAMETER_4;
|
||||
|
||||
/* Create the section */
|
||||
Status = MmCreateSection(&SectionObject,
|
||||
DesiredAccess,
|
||||
|
|
Loading…
Reference in a new issue