hanchenye-llvm-project/compiler-rt
Alex Shlyapnikov d053135d89 [compiler-rt] Check for empty buffer in Addr2LineProcess::ReadFromSymbolizer
This fixes a bug in the ReadFromSymbolizer method of the
Addr2LineProcess class; if the input is too large, the returned buffer
will be null and will consequently fail the CHECK. The proposed fix is
to simply check if the buffer consists of only a null-terminator and
return if so (in effect skipping that frame). I tested by running one of
the unit tests both before and after my change.

Submitted on behalf of david-y-lam.

Reviewers: eugenis, alekseyshl, kcc

Reviewed By: alekseyshl

Differential Revision: https://reviews.llvm.org/D36207

llvm-svn: 310089
2017-08-04 18:39:36 +00:00
..
cmake [sanitizer_common] Fuchsia OS support code 2017-08-01 22:22:25 +00:00
docs [sanitizers] Make it possible to XFAIL on the effective target, not just the default. 2016-08-09 11:50:53 +00:00
include [XRay][compiler-rt] Allow for building the XRay runtime without PREINIT initialization. 2017-08-03 00:58:45 +00:00
lib [compiler-rt] Check for empty buffer in Addr2LineProcess::ReadFromSymbolizer 2017-08-04 18:39:36 +00:00
test [msan] Switch the pvalloc overflow test to a lit test 2017-08-04 07:32:10 +00:00
unittests Add missing import 2017-04-07 01:24:48 +00:00
www
.arcconfig Upgrade all the .arcconfigs to https. 2016-07-14 13:15:37 +00:00
.gitignore Add .pyc files to .gitignore to compiler-rt 2017-07-24 21:51:12 +00:00
CMakeLists.txt [XRay][compiler-rt] Allow for building the XRay runtime without PREINIT initialization. 2017-08-03 00:58:45 +00:00
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
README.txt

README.txt

Compiler-RT
================================

This directory and its subdirectories contain source code for the compiler
support routines.

Compiler-RT is open source software. You may freely distribute it under the
terms of the license agreement found in LICENSE.txt.

================================