diff options
author | Stephen Toub <stoub@microsoft.com> | 2016-06-20 13:05:18 -0400 |
---|---|---|
committer | Stephen Toub <stoub@microsoft.com> | 2016-06-20 13:05:18 -0400 |
commit | 4a3ab6816124ef63e371bd9e7f80e05709f7a761 (patch) | |
tree | adb3c5baf2406500538331497636da24b0f42a0a | |
parent | 79ae4d44b7dc71f098ab97e712f8af7c493e720f (diff) | |
download | coreclr-4a3ab6816124ef63e371bd9e7f80e05709f7a761.tar.gz coreclr-4a3ab6816124ef63e371bd9e7f80e05709f7a761.tar.bz2 coreclr-4a3ab6816124ef63e371bd9e7f80e05709f7a761.zip |
Fix EventSource deserializing of byte[]s
It's incorrectly repeating the first element for all elements.
-rw-r--r-- | src/mscorlib/src/System/Diagnostics/Eventing/EventSource.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mscorlib/src/System/Diagnostics/Eventing/EventSource.cs b/src/mscorlib/src/System/Diagnostics/Eventing/EventSource.cs index 28c50a85f8..f2613e7224 100644 --- a/src/mscorlib/src/System/Diagnostics/Eventing/EventSource.cs +++ b/src/mscorlib/src/System/Diagnostics/Eventing/EventSource.cs @@ -1836,7 +1836,7 @@ namespace System.Diagnostics.Tracing dataPointer = data->DataPointer; data++; for (int i = 0; i < cbSize; ++i) - blob[i] = *((byte*)dataPointer); + blob[i] = *((byte*)(dataPointer + i)); return blob; } else if (dataType == typeof(byte*)) |