mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 13:59:25 +00:00
[SVCHOST]
Fix buffer overruns in LanaFlagIsSet() and SetLanaFlag(). Normally, i shouldn't be > 7, MAX_LANA is set to 254. CID #1102306 CID #1102305 svn path=/trunk/; revision=62633
This commit is contained in:
parent
ece6628139
commit
849f7cf1d1
1 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ LanaFlagIsSet (
|
|||
DWORD i = Lana / 32;
|
||||
|
||||
/* Clear the flag for this LANA */
|
||||
return (i <= 8) ? LanaFlags[i] & (1 << (Lana - 32 * i)) : FALSE;
|
||||
return (i <= 7) ? LanaFlags[i] & (1 << (Lana - 32 * i)) : FALSE;
|
||||
}
|
||||
|
||||
VOID
|
||||
|
@ -76,7 +76,7 @@ SetLanaFlag (
|
|||
DWORD i = Lana / 32;
|
||||
|
||||
/* Set the flag for this LANA */
|
||||
if (i <= 8) LanaFlags[i] |= 1 << (Lana - 32 * i);
|
||||
if (i <= 7) LanaFlags[i] |= 1 << (Lana - 32 * i);
|
||||
}
|
||||
|
||||
VOID
|
||||
|
|
Loading…
Reference in a new issue