[NTOS/SE]

- Allocate the new ACL for the token with the right pool.
Fixes google chrome BAD_POOL_CALLER bugcheck.

svn path=/trunk/; revision=65139
This commit is contained in:
Jérôme Gardou
2014-10-31 11:03:56 +00:00
parent d4eaa22e1f
commit f801abcacf
+14 -2
View File
@@ -1909,8 +1909,20 @@ NtSetInformationToken(IN HANDLE TokenHandle,
ExFreePoolWithTag(Token->DefaultDacl, TAG_TOKEN_ACL);
}
/* Set the new dacl */
Token->DefaultDacl = CapturedAcl;
Token->DefaultDacl = ExAllocatePoolWithTag(PagedPool,
CapturedAcl->AclSize,
TAG_TOKEN_ACL);
if (!Token->DefaultDacl)
{
ExFreePoolWithTag(CapturedAcl, TAG_ACL);
Status = STATUS_NO_MEMORY;
}
else
{
/* Set the new dacl */
RtlCopyMemory(Token->DefaultDacl, CapturedAcl, CapturedAcl->AclSize);
ExFreePoolWithTag(CapturedAcl, TAG_ACL);
}
}
}
else