From 27be32968d75046d6530dbdb05aeb8465da17c6f Mon Sep 17 00:00:00 2001 From: jackpoz Date: Sat, 2 Dec 2017 00:02:16 +0100 Subject: [PATCH] Core/Crash reporting: Fix buffer overflow --- src/common/Debugging/WheatyExceptionReport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/Debugging/WheatyExceptionReport.cpp b/src/common/Debugging/WheatyExceptionReport.cpp index be011f005ad..3223607d190 100644 --- a/src/common/Debugging/WheatyExceptionReport.cpp +++ b/src/common/Debugging/WheatyExceptionReport.cpp @@ -1025,7 +1025,7 @@ bool logChildren) ULONG64 length; SymGetTypeInfo(m_hProcess, modBase, innerTypeID, TI_GET_LENGTH, &length); char buffer2[50]; - FormatOutputValue(buffer2, basicType, length, (PVOID)address, sizeof(buffer)); + FormatOutputValue(buffer2, basicType, length, (PVOID)address, sizeof(buffer2)); symbolDetails.top().Value = buffer2; } bHandled = true;