aboutsummaryrefslogtreecommitdiff
path: root/src/common/Debugging/WheatyExceptionReport.cpp
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2017-12-02 00:02:16 +0100
committerjackpoz <giacomopoz@gmail.com>2017-12-02 00:02:16 +0100
commitc7043b25f659eddd75fecd916235e524223c7f05 (patch)
treeb9ac0a354c9946054cecca7b830b9145be7880d4 /src/common/Debugging/WheatyExceptionReport.cpp
parent072c884ed86a9bf895cd5f53b0f6480ae14c3059 (diff)
Core/Crash reporting: Fix buffer overflow
Diffstat (limited to 'src/common/Debugging/WheatyExceptionReport.cpp')
-rw-r--r--src/common/Debugging/WheatyExceptionReport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/Debugging/WheatyExceptionReport.cpp b/src/common/Debugging/WheatyExceptionReport.cpp
index e818df4e8fb..f541efcc001 100644
--- a/src/common/Debugging/WheatyExceptionReport.cpp
+++ b/src/common/Debugging/WheatyExceptionReport.cpp
@@ -1028,7 +1028,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;