The function used to log on Android will cut the message past
a certain amount of characters, which mostly materializes when
dumping the size class map on OOM.
This change splits the log message at newline boundaries.
Differential D78018
[scudo][standalone] Split logs on Android cryptoad on Apr 13 2020, 7:26 AM. Authored by
Details The function used to log on Android will cut the message past This change splits the log message at newline boundaries.
Diff Detail
Event Timeline
|
Is this true? Should we just fallback to async_safe_write_log if we don't see a newline? example,
common.cpp:25 has outputRaw("Scudo ERROR: internal map or unmap failure");, and while that'll still be output as it's less than 1024 characters, feels like the invariant that "if it has more than 1K characters it must have a newline" seems fragile.