[Mono-bugs] [Bug 387274] Type verification is enforced even when SkipVerification is requested
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu May 8 01:16:43 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=387274
User kornelpal at gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=387274#c16
--- Comment #16 from Kornél Pál <kornelpal at gmail.com> 2008-05-07 23:16:43 MST ---
I have learnt a lot from you about security in .NET thank you for the
explanation.
Note that the same thing is also supported by 1.x assemblies so I attachen the
same test case compiled using MS VC++ 2003 (code differs because C++/CLI syntax
was only introduced in MS VC++ 2005).
If this code is portable I think that using compile-time sizeof is more
efficient than using run-time strlen:
#define SKIP_VISIBILITY_ATTRIBUTE_NAME
("System.Security.Permissions.SecurityPermissionAttribute")
#define SKIP_VISIBILITY_ATTRIBUTE_SIZE (sizeof (SKIP_VISIBILITY_ATTRIBUTE_NAME)
/ sizeof (char) - 1)
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list