mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user