From 96406e340885948784bcffb5354f270d7485ae98 Mon Sep 17 00:00:00 2001 From: jackpoz Date: Sat, 2 Dec 2017 00:02:16 +0100 Subject: Core/Crash reporting: Fix buffer overflow (cherry picked from commit c7043b25f659eddd75fecd916235e524223c7f05) --- src/common/Debugging/WheatyExceptionReport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/Debugging/WheatyExceptionReport.cpp') diff --git a/src/common/Debugging/WheatyExceptionReport.cpp b/src/common/Debugging/WheatyExceptionReport.cpp index c245c9978ec..8d7f3905505 100644 --- a/src/common/Debugging/WheatyExceptionReport.cpp +++ b/src/common/Debugging/WheatyExceptionReport.cpp @@ -1040,7 +1040,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; -- cgit v1.2.3