OSDN Git Service

[Xray] llvm-xray fix possible segfault
authorDavid Carlier <devnexen@gmail.com>
Tue, 18 Sep 2018 10:31:10 +0000 (10:31 +0000)
committerDavid Carlier <devnexen@gmail.com>
Tue, 18 Sep 2018 10:31:10 +0000 (10:31 +0000)
commite725c11b63a32c8a40136f627117d9339d97312b
tree2aa7d465fe6f7ba08e94819fb4a81ea9778d4313
parent0a5be7e8d363bebccce1d73696508598c8fa9423
[Xray] llvm-xray fix possible segfault

top argument when superior to the instrumentated code list capacity can lead to a segfault.

Reviewers: dberris

Reviewed By: dberris

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@342461 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-xray/xray-account.cpp