hanchenye-llvm-project/compiler-rt/lib
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
..
BlocksRuntime
asan [asan] Allocator support for Fuchsia 2017-08-03 02:22:11 +00:00
builtins [builtins] Use Interlocked* intrinsics for atomics on MSVC 2017-08-03 19:04:28 +00:00
cfi Remove STL/microsoft-specific CFI blacklist entries 2017-07-31 20:39:32 +00:00
dfsan [sanitizer_common] Move filesystem-related code out of sanitizer_common.cc 2017-07-22 01:46:40 +00:00
esan Refactor MemoryMappingLayout::Next to use a single struct instead of output parameters. NFC. 2017-07-11 18:54:00 +00:00
interception [sanitizer_common] Fuchsia support for interceptors 2017-08-01 21:15:19 +00:00
lsan Support compiler-rt builtins 2017-07-28 03:39:38 +00:00
msan [msan] Switch the pvalloc overflow test to a lit test 2017-08-04 07:32:10 +00:00
profile Change INSTR_PROF_DEFAULT_NUM_VAL_PER_SITE from 8 to 16. 2017-07-28 15:00:30 +00:00
safestack [compiler-rt] Do not introduce __sanitizer namespace globally 2016-09-15 21:02:18 +00:00
sanitizer_common [compiler-rt] Check for empty buffer in Addr2LineProcess::ReadFromSymbolizer 2017-08-04 18:39:36 +00:00
scudo [scudo] Check for pvalloc overflow 2017-07-25 21:18:02 +00:00
stats Support compiler-rt builtins 2017-07-28 03:39:38 +00:00
tsan [tsan] Check for pvalloc overlow 2017-08-02 22:47:54 +00:00
ubsan [ubsan] Enable UBSan build for Fuchsia 2017-08-01 20:48:36 +00:00
xray [XRay][compiler-rt] Allow for building the XRay runtime without PREINIT initialization. 2017-08-03 00:58:45 +00:00
CMakeLists.txt Don't build tsan/dd when COMPILER_RT_HAS_TSAN is false 2017-06-27 21:10:46 +00:00