mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 12:23:31 +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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user