- Fix a code typo which led to a security issue when the XOR algorithm for the system cookie might actually yield zero. Now it's going to loop as long as the cookie is 0, attempting to generate a non-zero one.

svn path=/trunk/; revision=48737
This commit is contained in:
Aleksey Bragin 2010-09-10 21:13:06 +00:00
parent 9b12a8c1d7
commit 0daaf9da75

View file

@ -91,7 +91,7 @@ PspUserThreadStartup(IN PKSTART_ROUTINE StartRoutine,
}
/* Do we have a cookie set yet? */
if (!SharedUserData->Cookie)
while (!SharedUserData->Cookie)
{
LARGE_INTEGER SystemTime;
ULONG NewCookie;