From 25bcb1a0b2d9326519d9226dfe968caf26bb4e2d Mon Sep 17 00:00:00 2001 From: jackpoz Date: Sun, 28 Apr 2019 17:32:53 +0200 Subject: Core/CrashHandler: Remove sensible data from crashlogs --- src/common/Debugging/WheatyExceptionReport.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/common/Debugging/WheatyExceptionReport.cpp') diff --git a/src/common/Debugging/WheatyExceptionReport.cpp b/src/common/Debugging/WheatyExceptionReport.cpp index ff8ec2629f1..4f091c19143 100644 --- a/src/common/Debugging/WheatyExceptionReport.cpp +++ b/src/common/Debugging/WheatyExceptionReport.cpp @@ -1490,4 +1490,23 @@ void WheatyExceptionReport::PrintSymbolDetail() return; } +std::string SymbolDetail::ToString() +{ + Logged = true; + std::string formatted = Prefix + Type + Suffix; + if (!Name.empty()) + { + if (!formatted.empty()) + formatted += " "; + formatted += Name; + } + if (!Value.empty()) + { + if (Name == "passwd" || Name == "password") + Value = ""; + formatted += " = " + Value; + } + return formatted; +} + #endif // _WIN32 -- cgit v1.2.3