summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGLoopInfo.cpp
diff options
context:
space:
mode:
authorAlex Shlyapnikov <alekseys@google.com>2017-08-04 18:39:36 +0000
committerAlex Shlyapnikov <alekseys@google.com>2017-08-04 18:39:36 +0000
commitd053135d89370c4a90c3c8027b3b6b9cab1a012e (patch)
tree23549a7aa7569912070a6988cbccfe42a3e4dfe7 /clang/lib/CodeGen/CGLoopInfo.cpp
parent66b9bd6e503bdd87616ab04509ffb3f70220c281 (diff)
downloadbcm5719-llvm-d053135d89370c4a90c3c8027b3b6b9cab1a012e.tar.gz
bcm5719-llvm-d053135d89370c4a90c3c8027b3b6b9cab1a012e.zip
[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
Diffstat (limited to 'clang/lib/CodeGen/CGLoopInfo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud