Core/Crash reporting: Fix buffer overflow

(cherry picked from commit c7043b25f659eddd75fecd916235e524223c7f05)
This commit is contained in:
jackpoz
2021-02-25 18:50:55 +01:00
committed by funjoker
parent 7cb6c17df4
commit 96406e3408
@@ -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;