[NTOS:SE] SeValidSecurityDescriptor: Use relative security descriptor header size for length calculation (#8127)

Fixes Win2k3 ntfs.sys on x64
This commit is contained in:
Adam Słaboń
2025-06-18 23:55:27 +02:00
committed by GitHub
parent b5f763447c
commit 81a4d8344b

View File

@@ -1035,7 +1035,7 @@ SeValidSecurityDescriptor(
if (Length < SECURITY_DESCRIPTOR_MIN_LENGTH)
{
DPRINT1("Invalid Security Descriptor revision\n");
DPRINT1("Invalid Security Descriptor length\n");
return FALSE;
}
@@ -1051,7 +1051,7 @@ SeValidSecurityDescriptor(
return FALSE;
}
SdLength = sizeof(SECURITY_DESCRIPTOR);
SdLength = sizeof(*SecurityDescriptor);
/* Check Owner SID */
if (!SecurityDescriptor->Owner)