mirror of
https://github.com/reactos/reactos.git
synced 2025-06-06 09:50:43 +00:00
[RTL]
Comparison is always true due to limited range of data type. Patch by Samuel Serapion. CORE-7177 #resolve #comment Committed in r59076. svn path=/trunk/; revision=59076
This commit is contained in:
parent
c2b2763cba
commit
0bc3ffeb7b
1 changed files with 2 additions and 3 deletions
|
@ -889,8 +889,7 @@ RtlValidAcl(IN PACL Acl)
|
|||
}
|
||||
|
||||
/* Check what kind of ACE this is */
|
||||
if ((Ace->AceType >= ACCESS_MIN_MS_ACE_TYPE) ||
|
||||
(Ace->AceType <= ACCESS_MAX_MS_V2_ACE_TYPE))
|
||||
if (Ace->AceType <= ACCESS_MAX_MS_V2_ACE_TYPE)
|
||||
{
|
||||
/* Validate the length of this ACE */
|
||||
if (ROUND_DOWN(Ace->AceSize, sizeof(ULONG)) != Ace->AceSize)
|
||||
|
@ -932,7 +931,7 @@ RtlValidAcl(IN PACL Acl)
|
|||
{
|
||||
DPRINT1("Unsupported ACE in ReactOS, assuming valid\n");
|
||||
}
|
||||
else if ((Ace->AceType >= ACCESS_MIN_MS_OBJECT_ACE_TYPE) ||
|
||||
else if ((Ace->AceType >= ACCESS_MIN_MS_OBJECT_ACE_TYPE) &&
|
||||
(Ace->AceType <= ACCESS_MAX_MS_OBJECT_ACE_TYPE))
|
||||
{
|
||||
DPRINT1("Unsupported ACE in ReactOS, assuming valid\n");
|
||||
|
|
Loading…
Reference in a new issue