mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 07:33:20 +00:00
[NTOS]
- 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:
parent
9b12a8c1d7
commit
0daaf9da75
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ PspUserThreadStartup(IN PKSTART_ROUTINE StartRoutine,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Do we have a cookie set yet? */
|
/* Do we have a cookie set yet? */
|
||||||
if (!SharedUserData->Cookie)
|
while (!SharedUserData->Cookie)
|
||||||
{
|
{
|
||||||
LARGE_INTEGER SystemTime;
|
LARGE_INTEGER SystemTime;
|
||||||
ULONG NewCookie;
|
ULONG NewCookie;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue