From: Brian Robbins Date: Mon, 16 Nov 2015 18:59:26 +0000 (-0800) Subject: Fix ArgumentOutOfRangeException in XplatEventLogger. X-Git-Tag: accepted/tizen/base/20180629.140029~6063^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=71623b94506f7c2a02a47001eecf5514bbf12c09;p=platform%2Fupstream%2Fcoreclr.git Fix ArgumentOutOfRangeException in XplatEventLogger. --- diff --git a/src/mscorlib/src/System/Diagnostics/Eventing/XplatEventLogger.cs b/src/mscorlib/src/System/Diagnostics/Eventing/XplatEventLogger.cs index 94166f0..b43b451 100644 --- a/src/mscorlib/src/System/Diagnostics/Eventing/XplatEventLogger.cs +++ b/src/mscorlib/src/System/Diagnostics/Eventing/XplatEventLogger.cs @@ -79,6 +79,10 @@ namespace System.Diagnostics.Tracing return String.Empty; Contract.Assert(payloadName.Count == payload.Count); + if(payloadName.Count != payload.Count) + { + return string.Empty; + } var sb = StringBuilderCache.Acquire();