--
You received this message because you are subscribed to the Google Groups "Crashpad-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crashpad-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/crashpad-dev/deffd30a-a599-4c03-8a34-a4204b9baa7an%40chromium.org.
--
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/crashpad-dev/ec9cf2d3-35c5-42ad-a34a-7495480bb775n%40chromium.org.
kern_return_t CrashReportExceptionHandler::CatchMachException(...)
{
...
process_snapshot.SetReportID(new_report->ReportID());
// unchanged from here up
ProcessSnapshotSanitized sanitized_snapshot;
if (!sanitized_snapshot.Initialize(&process_snapshot,
nullptr, // all annotations are allowed
nullptr, // no memory ranges are allowed
0, // there is no target module
true // sanitize stacks for PII
)) {
Metrics::ExceptionCaptureResult(Metrics::CaptureResult::kSkippedDueToSanitization);
return KERN_FAILURE;
}
ProcessSnapshot* snapshot_to_write = implicit_cast<ProcessSnapshot*>(&sanitized_snapshot);
MinidumpFileWriter minidump;
minidump.InitializeFromSnapshot(snapshot_to_write);
AddUserExtensionStreams(user_stream_data_sources_, snapshot_to_write, &minidump);
// unchanged from here down
if (!minidump.WriteEverything(new_report->Writer())) {
...
}
}