-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[libc++][hardening] In production hardening modes, trap rather than abort #78561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
9308d05
522100d
895e6ad
119f7cd
43c33cf
a95509b
5727f38
de5e151
e2a162c
f3b6fd9
eafad53
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
// REQUIRES: has-unix-headers | ||
// UNSUPPORTED: c++03, c++11, c++14, c++17 | ||
// UNSUPPORTED: !libcpp-hardening-mode=debug | ||
// XFAIL: availability-verbose_abort-missing | ||
// XFAIL: libcpp-hardening-mode=debug && availability-verbose_abort-missing | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: while for tests that already require the debug mode this is, strictly speaking, redundant, I think that a) it's slightly easier to make this condition uniform throughout the test suite; and b) this is slightly more robust should that requirement ever be lowered (e.g. if changing this test started to run in the extensive mode, it's easy to forget to update the |
||
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DEBUG_STRICT_WEAK_ORDERING_CHECK | ||
// When the debug mode is enabled, this test fails because we actually catch on the fly that the comparator is not | ||
// a strict-weak ordering before we catch that we'd dereference out-of-bounds inside std::sort, which leads to different | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tagging @llvm/libcxx-vendors