Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLevi Broderick <levib@microsoft.com>2018-03-06 20:11:52 +0300
committerJan Kotas <jkotas@microsoft.com>2018-03-06 22:43:35 +0300
commit04efa15f1886fcc840772a5d34919390bae2a35a (patch)
treef4f4e523becd47822018b3a879d84df5c76eb664 /src
parent19116562388ed45b336321456079fc7c398556fc (diff)
Fix potential buffer overrun in ClearWithReferences
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Diffstat (limited to 'src')
-rw-r--r--src/System.Private.CoreLib/shared/System/SpanHelpers.cs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/System.Private.CoreLib/shared/System/SpanHelpers.cs b/src/System.Private.CoreLib/shared/System/SpanHelpers.cs
index 6752d7fef..c3cfe5a07 100644
--- a/src/System.Private.CoreLib/shared/System/SpanHelpers.cs
+++ b/src/System.Private.CoreLib/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);