Core/Crash reporting: Fix buffer overflow

This commit is contained in:
jackpoz authored and Aokromes committed 2017-12-02 05:11:07 +01:00
1 parent 2507d601b7
commit 27be32968d
1 file changed
+1 -1
@@ -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;