log_to_syslog is a sanitizer common option, that had no effect in Scudo's
dieWithMessage. It turns out to be quite useful on Android, so add the few
lines needed to support it.
Details
Details
- Reviewers
alekseyshl
Diff Detail
Diff Detail
- Build Status
Buildable 8225 Build 8225: arc lint + arc unit
Event Timeline
Comment Actions
As it turns out, Android's syslog does malloc(), so it can lead to hairy behaviors in init (and probably others).
Explore the following as an alternative:
#define error_log(format, ...) \ async_safe_format_log(ANDROID_LOG_ERROR, "libc", (format), ##__VA_ARGS__ ) #define info_log(format, ...) \ async_safe_format_log(ANDROID_LOG_INFO, "libc", (format), ##__VA_ARGS__ )