summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLevi Broderick <levib@microsoft.com>2018-03-06 09:11:52 -0800
committerLevi Broderick <GrabYourPitchforks@users.noreply.github.com>2018-03-06 10:46:04 -0800
commitd5b2f75e9200b459be265839671909bb51d3f8b9 (patch)
treebb986e4ade9c6c86c1d7f92fd515038cf7728520 /src
parentfd48dbb99ca67792441259b3ae79564634b9fe1a (diff)
downloadcoreclr-d5b2f75e9200b459be265839671909bb51d3f8b9.tar.gz
coreclr-d5b2f75e9200b459be265839671909bb51d3f8b9.tar.bz2
coreclr-d5b2f75e9200b459be265839671909bb51d3f8b9.zip
Fix potential buffer overrun in ClearWithReferences
Diffstat (limited to 'src')
-rw-r--r--src/mscorlib/shared/System/SpanHelpers.cs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mscorlib/shared/System/SpanHelpers.cs b/src/mscorlib/shared/System/SpanHelpers.cs
index 6752d7fef7..c3cfe5a071 100644
--- a/src/mscorlib/shared/System/SpanHelpers.cs
+++ b/src/mscorlib/shared/System/SpanHelpers.cs
@@ -517,7 +517,6 @@ namespace System
// Write first four and last three.
Unsafe.Add(ref ip, 2) = default(IntPtr);
Unsafe.Add(ref ip, 3) = default(IntPtr);
- Unsafe.Add(ref ip, 4) = default(IntPtr);
Unsafe.Add(ref Unsafe.Add(ref ip, (IntPtr)pointerSizeLength), -3) = default(IntPtr);
Unsafe.Add(ref Unsafe.Add(ref ip, (IntPtr)pointerSizeLength), -2) = default(IntPtr);