mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +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;
|
return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
}
|
}
|
||||||
|
|
||||||
RtlCreateSecurityDescriptor(NewSd,
|
RtlCreateSecurityDescriptorRelative(NewSd, SECURITY_DESCRIPTOR_REVISION1);
|
||||||
SECURITY_DESCRIPTOR_REVISION1);
|
|
||||||
|
|
||||||
/* We always build a self-relative descriptor */
|
Current = sizeof(SECURITY_DESCRIPTOR_RELATIVE);
|
||||||
NewSd->Control = Control | SE_SELF_RELATIVE;
|
|
||||||
|
|
||||||
Current = sizeof(SECURITY_DESCRIPTOR);
|
|
||||||
|
|
||||||
if (OwnerLength != 0)
|
if (OwnerLength != 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue