[NTOSKRNL]

SeValidSecurityDescriptor does not correctly check for invalid DACL revision numbers. Patch by Samuel Serapion.

CORE-7209 #resolve #comment Committed in r59075.

svn path=/trunk/; revision=59075
This commit is contained in:
Eric Kohl 2013-05-24 09:07:46 +00:00
parent 5ad38a47d0
commit c2b2763cba

View file

@ -1088,7 +1088,7 @@ SeValidSecurityDescriptor(IN ULONG Length,
}
Acl = (PACL)((ULONG_PTR)SecurityDescriptor + SecurityDescriptor->Dacl);
if ((Acl->AclRevision < MIN_ACL_REVISION) &&
if ((Acl->AclRevision < MIN_ACL_REVISION) ||
(Acl->AclRevision > MAX_ACL_REVISION))
{
DPRINT1("Invalid DACL revision\n");