llvm-project/compiler-rt/test/ubsan_minimal/TestCases
Roman Lebedev a06ad18669 [compiler-rt][UBSan] Sanitization for alignment assumptions.
Summary:
This is the compiler-rt part.
The clang part is D54589.

This is a second commit, the original one was r351106,
which was mass-reverted in r351159 because 2 compiler-rt tests were failing.

Now, i have fundamentally changed the testing approach:
i malloc a few bytes, intentionally mis-align the pointer
(increment it by one), and check that. Also, i have decreased
the expected alignment. This hopefully should be enough to pacify
all the bots. If not, i guess i might just drop the two 'bad' tests.

Reviewers: filcab, vsk, #sanitizers, vitalybuka, rsmith, morehouse

Reviewed By: morehouse

Subscribers: rjmccall, krytarowski, rsmith, kcc, srhines, kubamracek, dberris, llvm-commits

Tags: #sanitizers

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

llvm-svn: 351178
2019-01-15 09:44:27 +00:00
..
alignment-assumption.c [compiler-rt][UBSan] Sanitization for alignment assumptions. 2019-01-15 09:44:27 +00:00
implicit-integer-sign-change.c [compiler-rt][ubsan] Implicit Conversion Sanitizer - integer sign change - compiler-rt part 2018-10-30 21:58:54 +00:00
implicit-signed-integer-truncation-or-sign-change.c [compiler-rt][ubsan] Implicit Conversion Sanitizer - integer sign change - compiler-rt part 2018-10-30 21:58:54 +00:00
implicit-signed-integer-truncation.c [compiler-rt][ubsan] Split Implicit Integer Truncation Sanitizer into unsigned and signed checks 2018-10-11 09:09:52 +00:00
implicit-unsigned-integer-truncation.c [compiler-rt][ubsan] Split Implicit Integer Truncation Sanitizer into unsigned and signed checks 2018-10-11 09:09:52 +00:00
recover-dedup-limit.cpp
recover-dedup.cpp
test-darwin-interface.c [ubsan-minimal] Test exported symbol set against RTUBsan 2017-09-19 06:46:36 +00:00
uadd-overflow.cpp