[PATCH] D55796: hwasan: Allow range of frame descriptors to be empty.
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 17 16:51:29 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT349428: hwasan: Allow range of frame descriptors to be empty. (authored by pcc, committed by ).
Herald added a subscriber: Sanitizers.
Changed prior to commit:
https://reviews.llvm.org/D55796?vs=178560&id=178561#toc
Repository:
rCRT Compiler Runtime
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55796/new/
https://reviews.llvm.org/D55796
Files:
lib/hwasan/hwasan.cc
Index: lib/hwasan/hwasan.cc
===================================================================
--- lib/hwasan/hwasan.cc
+++ lib/hwasan/hwasan.cc
@@ -229,8 +229,8 @@
void InitFrameDescriptors(uptr b, uptr e) {
FrameDescription *beg = reinterpret_cast<FrameDescription *>(b);
FrameDescription *end = reinterpret_cast<FrameDescription *>(e);
- // Must have at least one entry, which we can use for a linked list.
- CHECK_GE(end - beg, 1U);
+ if (beg == end)
+ return;
AllFrames.push_back({beg, end});
if (Verbosity())
for (FrameDescription *frame_descr = beg; frame_descr < end; frame_descr++)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55796.178561.patch
Type: text/x-patch
Size: 616 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181218/71084ad3/attachment.bin>
More information about the llvm-commits
mailing list