Author: spouliot
Date: 2005-04-04 15:23:39 -0400 (Mon, 04 Apr 2005)
New Revision: 42536
Modified:
trunk/mcs/class/corlib/System.Reflection/AssemblyName.cs
trunk/mcs/class/corlib/System.Reflection/ChangeLog
Log:
2005-04-04 Sebastien Pouliot <[EMAIL PROTECTED]>
* AssemblyName.cs: Added a demand for SerializationFormatter on
GetObjectData method.
Modified: trunk/mcs/class/corlib/System.Reflection/AssemblyName.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/AssemblyName.cs 2005-04-04
19:23:07 UTC (rev 42535)
+++ trunk/mcs/class/corlib/System.Reflection/AssemblyName.cs 2005-04-04
19:23:39 UTC (rev 42536)
@@ -33,6 +33,7 @@
using System.Globalization;
using System.Runtime.Serialization;
using System.Security.Cryptography;
+using System.Security.Permissions;
using System.Text;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
@@ -242,6 +243,7 @@
keyToken = publicKeyToken;
}
+ [SecurityPermission (SecurityAction.Demand,
SerializationFormatter = true)]
public void GetObjectData (SerializationInfo info,
StreamingContext context)
{
if (info == null)
Modified: trunk/mcs/class/corlib/System.Reflection/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/ChangeLog 2005-04-04 19:23:07 UTC
(rev 42535)
+++ trunk/mcs/class/corlib/System.Reflection/ChangeLog 2005-04-04 19:23:39 UTC
(rev 42536)
@@ -1,3 +1,8 @@
+2005-04-04 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * AssemblyName.cs: Added a demand for SerializationFormatter on
+ GetObjectData method.
+
2005-04-04 Sebastien Pouliot <[EMAIL PROTECTED]>
* AssemblyName.cs: Implemented EscapedCodeBase using the copy of
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches