mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[NTOS:SE] Fix SeSetSecurityDescriptorInfoEx to prevent pool corruption on x64
This commit is contained in:
parent
d559ca9c98
commit
6c154c0625
1 changed files with 2 additions and 6 deletions
|
@ -916,13 +916,9 @@ SeSetSecurityDescriptorInfoEx(
|
|||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
}
|
||||
|
||||
RtlCreateSecurityDescriptor(NewSd,
|
||||
SECURITY_DESCRIPTOR_REVISION1);
|
||||
RtlCreateSecurityDescriptorRelative(NewSd, SECURITY_DESCRIPTOR_REVISION1);
|
||||
|
||||
/* We always build a self-relative descriptor */
|
||||
NewSd->Control = Control | SE_SELF_RELATIVE;
|
||||
|
||||
Current = sizeof(SECURITY_DESCRIPTOR);
|
||||
Current = sizeof(SECURITY_DESCRIPTOR_RELATIVE);
|
||||
|
||||
if (OwnerLength != 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue