[compiler-rt] r336445 - [scudo] Add some logs for Android
Kostya Kortchinsky via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 6 09:50:12 PDT 2018
Author: cryptoad
Date: Fri Jul 6 09:50:12 2018
New Revision: 336445
URL: http://llvm.org/viewvc/llvm-project?rev=336445&view=rev
Log:
[scudo] Add some logs for Android
Summary:
Namely, set the abort message, and allow to write the message to syslog if the
option is enabled.
Reviewers: alekseyshl
Reviewed By: alekseyshl
Subscribers: delcypher, #sanitizers, llvm-commits
Differential Revision: https://reviews.llvm.org/D48902
Modified:
compiler-rt/trunk/lib/scudo/scudo_utils.cpp
Modified: compiler-rt/trunk/lib/scudo/scudo_utils.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/scudo/scudo_utils.cpp?rev=336445&r1=336444&r2=336445&view=diff
==============================================================================
--- compiler-rt/trunk/lib/scudo/scudo_utils.cpp (original)
+++ compiler-rt/trunk/lib/scudo/scudo_utils.cpp Fri Jul 6 09:50:12 2018
@@ -50,6 +50,9 @@ FORMAT(1, 2) void NORETURN dieWithMessag
internal_memcpy(Message, ScudoError, PrefixSize);
VSNPrintf(Message + PrefixSize, sizeof(Message) - PrefixSize, Format, Args);
va_end(Args);
+ LogMessageOnPrintf(Message);
+ if (common_flags()->abort_on_error)
+ SetAbortMessage(Message);
RawWrite(Message);
Die();
}
More information about the llvm-commits
mailing list