diff --git a/src/app/main.cpp b/src/app/main.cpp index 365887dfc4e..5d2fa201df9 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -450,6 +450,11 @@ void startCrashpad(const AppInfo &appInfo, bool crashReportingEnabled) ->set_gather_indirectly_referenced_memory(crashpad::TriState::kEnabled, 0); } + // Explicitly enable Crashpad handling. This is the default in vanilla Crashpad, + // but we use a version that only handles processes that enable it explicitly, + // so we do not handle arbitrary subprocesses + CrashpadInfo::GetCrashpadInfo()->set_crashpad_handler_behavior(crashpad::TriState::kEnabled); + // Optional arguments to pass to the handler std::vector arguments; arguments.push_back("--no-rate-limit");