-
Notifications
You must be signed in to change notification settings - Fork 4
Gendarme.Rules.Security.Cas.ReviewSuppressUnmanagedCodeSecurityUsageRule(2.10)
Sebastien Pouliot edited this page Feb 9, 2011
·
3 revisions
Assembly: Gendarme.Rules.Security.Cas
Version: 2.10
This rule fires if a type or method is decorated with the SuppressUnmanagedCodeSecurity attribute. This attribute reduces the security checks done when executing unmanaged code and its usage should be reviewed to confirm that no exploitable security holes are present.
Example:
[SuppressUnmanagedCodeSecurity]
public class Safe {
[DllImport ("User32.dll")]
static extern Boolean MessageBeep (UInt32 beepType);
}
- This is an Audit rule. As such it does not check for valid or invalid patterns but warns about a specific problem that needs to be reviewed by someone.
Note that this page was autogenerated (3/17/2011 9:31:58 PM) based on the xmldoc
comments inside the rules source code and cannot be edited from this wiki.
Please report any documentation errors, typos or suggestions to the
Gendarme Mailing List. Thanks!