Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/referencesource/mscorlib/system/security/accesscontrol/ace.cs')
-rw-r--r--mcs/class/referencesource/mscorlib/system/security/accesscontrol/ace.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/mcs/class/referencesource/mscorlib/system/security/accesscontrol/ace.cs b/mcs/class/referencesource/mscorlib/system/security/accesscontrol/ace.cs
index 4776e5f6dba..f0dcbd61941 100644
--- a/mcs/class/referencesource/mscorlib/system/security/accesscontrol/ace.cs
+++ b/mcs/class/referencesource/mscorlib/system/security/accesscontrol/ace.cs
@@ -137,8 +137,8 @@ namespace System.Security.AccessControl
{
//
// Only have two bytes to store the length in.
- // Indicates a
-
+ // Indicates a bug in the implementation, not in user's code.
+ //
Contract.Assert( false, "Length > ushort.MaxValue" );
throw new SystemException();
@@ -395,8 +395,8 @@ namespace System.Security.AccessControl
if (((!( result is ObjectAce )) && (( binaryForm[offset + 2] << 0 ) + ( binaryForm[offset + 3] << 8 ) != result.BinaryLength ))
//
// This is needed because object aces created through ADSI have the advertised ACE length
- // greater than the actual length by 32 (
-
+ // greater than the actual length by 32 (bug in ADSI).
+ //
|| (( result is ObjectAce ) && (( binaryForm[offset + 2] << 0 ) + ( binaryForm[offset + 3] << 8 ) != result.BinaryLength ) && ((( binaryForm[offset + 2] << 0 ) + ( binaryForm[offset + 3] << 8 ) - 32 ) != result.BinaryLength )))
{
goto InvalidParameter;
@@ -1199,8 +1199,8 @@ namespace System.Security.AccessControl
default:
//
- // Indicates a
-
+ // Indicates a bug in the implementation, not in user's code
+ //
Contract.Assert( false, "Invalid ACE type" );
throw new SystemException();