[UBSan] Improve bufferization of UBSan error reports.
authorAlexey Samsonov <vonosmas@gmail.com>
Fri, 11 Mar 2016 00:37:02 +0000 (00:37 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Fri, 11 Mar 2016 00:37:02 +0000 (00:37 +0000)
commit92a46991b521072598346b2d03b8d7ee2a425fbb
tree63efddc1f22f35a8c69aad6427d21836590bf9bb
parent13f189da86b2c23118fd2fa802084d58d772a602
[UBSan] Improve bufferization of UBSan error reports.

Summary:
Use InternalScopedString more extensively. This reduces the number of
write() syscalls, and reduces the chance that UBSan output will be
mixed with program output.

Reviewers: vitalybuka

Subscribers: kcc, llvm-commits

Differential Revision: http://reviews.llvm.org/D18068

llvm-svn: 263176
compiler-rt/lib/ubsan/ubsan_diag.cc