diff options
author | jackpoz <giacomopoz@gmail.com> | 2017-12-02 00:02:16 +0100 |
---|---|---|
committer | funjoker <funjoker109@gmail.com> | 2021-02-25 18:50:55 +0100 |
commit | 96406e340885948784bcffb5354f270d7485ae98 (patch) | |
tree | b489b5df7fe82e3a67e144740cafb13966b8dca9 | |
parent | 7cb6c17df4a3c281dc4b101881f12720fff7cbdc (diff) |
Core/Crash reporting: Fix buffer overflow
(cherry picked from commit c7043b25f659eddd75fecd916235e524223c7f05)
-rw-r--r-- | src/common/Debugging/WheatyExceptionReport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |