mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user