From 1cd1c77233da43d7b7d10cec890fc0bf144ba802 Mon Sep 17 00:00:00 2001 From: Ilya Ivanov Date: Thu, 23 Mar 2017 17:46:08 +0300 Subject: [PATCH] We have found and fixed a security weakness (CWE-188) using PVS-Studio tool: Analyzer warning: V557 Array overrun is possible. The value of 'dwCode - 1' index could reach 8. PVS-Studio is a static code analyzer for C, C++ and C#: https://www.viva64.com/en/pvs-studio/ Commit migrated from https://github.com/dotnet/coreclr/commit/baaff75f0c3c1f8439c201afe33eafd964e4475d --- src/coreclr/src/debug/di/rsmain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/src/debug/di/rsmain.cpp b/src/coreclr/src/debug/di/rsmain.cpp index 2a93619..cdad21b 100644 --- a/src/coreclr/src/debug/di/rsmain.cpp +++ b/src/coreclr/src/debug/di/rsmain.cpp @@ -60,7 +60,7 @@ const char * GetDebugCodeName(DWORD dwCode) "(5) EXIT_PROCESS_DEBUG_EVENT", "(6) LOAD_DLL_DEBUG_EVENT", "(7) UNLOAD_DLL_DEBUG_EVENT", - "(8) OUTPUT_DEBUG_STRING_EVENT" + "(8) OUTPUT_DEBUG_STRING_EVENT", "(9) RIP_EVENT",// <-- only on Win9X }; -- 2.7.4