Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
a5d7e86dae | ||
![]() |
a9d1f1f299 | ||
![]() |
a6f96c48f3 |
@@ -258,6 +258,7 @@ void Breakpad::UncaughtExceptionHandler(NSException *exception) {
|
|||||||
if (current_breakpad_) {
|
if (current_breakpad_) {
|
||||||
current_breakpad_->HandleUncaughtException(exception);
|
current_breakpad_->HandleUncaughtException(exception);
|
||||||
}
|
}
|
||||||
|
BreakpadRelease(current_breakpad_);
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
@@ -1758,23 +1758,6 @@ class MinidumpWriter {
|
|||||||
space_left -= info_len;
|
space_left -= info_len;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __ANDROID__
|
|
||||||
// On Android, try to get the build fingerprint and append it.
|
|
||||||
// Fail gracefully because there is no guarantee that the system
|
|
||||||
// property will always be available or accessible.
|
|
||||||
char fingerprint[PROP_VALUE_MAX];
|
|
||||||
int fingerprint_len = __system_property_get("ro.build.fingerprint",
|
|
||||||
fingerprint);
|
|
||||||
// System property values shall always be zero-terminated.
|
|
||||||
// Be paranoid and don't trust the system.
|
|
||||||
if (fingerprint_len > 0 && fingerprint_len < PROP_VALUE_MAX) {
|
|
||||||
const char* separator = " ";
|
|
||||||
if (!first_item)
|
|
||||||
my_strlcat(buf, separator, sizeof(buf));
|
|
||||||
my_strlcat(buf, fingerprint, sizeof(buf));
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
MDLocationDescriptor location;
|
MDLocationDescriptor location;
|
||||||
if (!minidump_writer_.WriteString(buf, 0, &location))
|
if (!minidump_writer_.WriteString(buf, 0, &location))
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user