[scudo][standalone] Split logs on Android
authorKostya Kortchinsky <kostyak@google.com>
Mon, 13 Apr 2020 14:25:35 +0000 (07:25 -0700)
committerKostya Kortchinsky <kostyak@google.com>
Tue, 14 Apr 2020 18:29:57 +0000 (11:29 -0700)
commit15754acc5985188509f5eefaefa308393759b822
tree2c4456a66eae15634349138fe031b8255a004a59
parent85b49ecb78f1de685e553d00aa3c661e4505afc0
[scudo][standalone] Split logs on Android

Summary:
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.

Reviewers: pcc, cferris, hctim, eugenis

Subscribers: #sanitizers, llvm-commits

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D78018
compiler-rt/lib/scudo/standalone/linux.cpp