未验证 提交 498dc773 编写于 作者: G George Wright 提交者: GitHub

Truncate error messages for the crash reporter to the maximum length permitted...

Truncate error messages for the crash reporter to the maximum length permitted by the FIDL call (#17189)
上级 a28375a5
......@@ -64,6 +64,11 @@ fuchsia::feedback::CrashReport BuildCrashReport(
error.substr(delimiter_pos + 2 /*to get rid of the leading ': '*/);
}
// Truncate error message to the maximum length allowed for the crash_reporter
// FIDL call
error_message = error_message.substr(
0, fuchsia::feedback::MAX_EXCEPTION_MESSAGE_LENGTH - 1);
fuchsia::feedback::RuntimeCrashReport dart_report;
dart_report.set_exception_type(error_type);
dart_report.set_exception_message(error_message);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册