* AsyncResult.cs, CallContext.cs: Added private constructor.
authorLluis Sanchez <lluis@novell.com>
Tue, 25 Nov 2003 16:47:29 +0000 (16:47 -0000)
committerLluis Sanchez <lluis@novell.com>
Tue, 25 Nov 2003 16:47:29 +0000 (16:47 -0000)
* ReturnMessage.cs: Added parameter array length check.

svn path=/trunk/mcs/; revision=20430

mcs/class/corlib/System.Runtime.Remoting.Messaging/AsyncResult.cs
mcs/class/corlib/System.Runtime.Remoting.Messaging/CallContext.cs
mcs/class/corlib/System.Runtime.Remoting.Messaging/ChangeLog
mcs/class/corlib/System.Runtime.Remoting.Messaging/ReturnMessage.cs

index 581c7d52394bace10f5e8363dfea8285272c268b..2181431b264007c57ca225eef2130642f550ddc5 100644 (file)
@@ -29,6 +29,10 @@ public class AsyncResult : IAsyncResult, IMessageSink {
        IMessageCtrl message_ctrl;
        IMessage reply_message;
        
+       internal AsyncResult ()
+       {
+       }
+       
        public virtual object AsyncState
        {
                get {
index 26c2b04ef0a4cc425b6eaa2f786b97222a8ae99b..d253466a26660ebc051f4576bc99efebf87d17e0 100644 (file)
@@ -23,6 +23,10 @@ namespace System.Runtime.Remoting.Messaging
        {
                internal const string HeadersKey = "__Headers";
                internal const string ContextKey = "__CallContext";
+               
+               private CallContext ()
+               {
+               }
 
                // public methods
                public static void FreeNamedDataSlot (string name) 
index 6579af1c5494d13bf876563f508410fa777bb51e..c7a09f2bab2211c69992793d2bf1a7086cde6338 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-25  Lluis Sanchez Gual <lluis@ximian.com>
+
+       * AsyncResult.cs, CallContext.cs: Added private constructor.
+       * ReturnMessage.cs: Added parameter array length check.
+
 2003-11-18  Lluis Sanchez Gual <lluis@ximian.com>
 
        * ArgInfo.cs, ClientContextTerminatorSink.cs, ErrorMessage.cs, MethodCall.cs,
index 1ab39fd1399fdbb18dd1f6adc6123726146d9d28..0659c0bf0007fe0157c22c0ea0743f0d40fc5b95 100644 (file)
@@ -148,6 +148,7 @@ namespace System.Runtime.Remoting.Messaging {
 
                public int OutArgCount {
                        get {
+                               if (_args.Length == 0) return 0;
                                if (_inArgInfo == null) _inArgInfo = new ArgInfo (MethodBase, ArgInfoType.Out);
                                return _inArgInfo.GetInOutArgCount ();
                        }