aboutsummaryrefslogtreecommitdiff
path: root/src/common/Debugging/WheatyExceptionReport.cpp
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2019-04-28 17:32:53 +0200
committerjackpoz <giacomopoz@gmail.com>2019-04-28 17:32:53 +0200
commit25bcb1a0b2d9326519d9226dfe968caf26bb4e2d (patch)
treea42f4310916dd00cb30602715ad2d9cee9fb88f9 /src/common/Debugging/WheatyExceptionReport.cpp
parent408d68717cc1b920cae7da6dffd18ed992a6fdd6 (diff)
Core/CrashHandler: Remove sensible data from crashlogs
Diffstat (limited to 'src/common/Debugging/WheatyExceptionReport.cpp')
-rw-r--r--src/common/Debugging/WheatyExceptionReport.cpp19
1 files changed, 19 insertions, 0 deletions
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 = "<sensible data>";
+ formatted += " = " + Value;
+ }
+ return formatted;
+}
+
#endif // _WIN32