summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSwift Kim <swift.kim@samsung.com>2020-01-31 14:27:40 (GMT)
committerGleb Balykov <g.balykov@samsung.com>2020-03-25 12:29:41 (GMT)
commit4ea577852d4134d44518a2b36cef81a173a2c947 (patch)
treefb85b8a7313eb697de0b983214127cca85c09f85 /src
parente27f1498b675f8615ed9def15dc8538635f6439b (diff)
downloadcoreclr-4ea577852d4134d44518a2b36cef81a173a2c947.zip
coreclr-4ea577852d4134d44518a2b36cef81a173a2c947.tar.gz
coreclr-4ea577852d4134d44518a2b36cef81a173a2c947.tar.bz2
Fix OverflowException from IntPtr casting (#14381)
Diffstat (limited to 'src')
-rw-r--r--src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventProvider.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventProvider.cs b/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventProvider.cs
index abc56be..a7f3667 100644
--- a/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventProvider.cs
+++ b/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventProvider.cs
@@ -644,7 +644,7 @@ namespace System.Diagnostics.Tracing
if (filterData->Ptr != 0 && 0 < filterData->Size && filterData->Size <= 100*1024)
{
data = new byte[filterData->Size];
- Marshal.Copy((IntPtr)filterData->Ptr, data, 0, data.Length);
+ Marshal.Copy((IntPtr)(void*)filterData->Ptr, data, 0, data.Length);
}
command = (ControllerCommand)filterData->Type;
return true;