From 71623b94506f7c2a02a47001eecf5514bbf12c09 Mon Sep 17 00:00:00 2001 From: Brian Robbins Date: Mon, 16 Nov 2015 10:59:26 -0800 Subject: [PATCH] Fix ArgumentOutOfRangeException in XplatEventLogger. --- src/mscorlib/src/System/Diagnostics/Eventing/XplatEventLogger.cs | 4 ++++ 1 file changed, 4 insertions(+) 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(); -- 2.7.4