Go to file
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
clang [clang][UBSan] Sanitization for alignment assumptions. 2019-01-15 09:44:25 +00:00
clang-tools-extra [clangd] Fix updated file detection logic in indexing 2019-01-15 09:03:33 +00:00
compiler-rt [compiler-rt][UBSan] Sanitization for alignment assumptions. 2019-01-15 09:44:27 +00:00
debuginfo-tests Set config.lit_tools_dir, which is needed by lit.llvm.initialize. 2018-11-06 21:54:27 +00:00
libclc cmake: Install libraries to DATADIR from GNUInstallDirs 2019-01-07 20:20:37 +00:00
libcxx [test] Fix logic error in <compare> tests; enable for MSVC Dev16 2019-01-15 01:53:12 +00:00
libcxxabi [libcxx] Remove bad_array_length 2018-11-29 19:44:57 +00:00
libunwind [Sparc] Add Sparc V8 support 2019-01-14 10:15:20 +00:00
lld lld-link: Spelling fixes in comments and minor style tweaks 2019-01-14 19:05:21 +00:00
lldb [LLDB] Remove the unused variable oso_dwarf. 2019-01-15 03:27:54 +00:00
llgo Update copyright year to 2018. 2018-06-18 12:22:17 +00:00
llvm [llvm][IRBuilder] Introspection for CreateAlignmentAssumption*() functions 2019-01-15 09:44:13 +00:00
openmp [OpenMP] Fix LIBOMP_USE_DEBUGGER=ON build (PR38612) 2019-01-13 12:54:34 +00:00
parallel-libs Update copyright year to 2018. 2018-06-18 12:22:17 +00:00
polly [CMake] Fix generation of exported targets in build directory 2018-11-06 15:18:17 +00:00
pstl [pstl] Fix compile errors when PARALLEL_POLICIES is disabled 2019-01-10 11:23:33 +00:00
.arcconfig Add an .arcconfig for the top of the git monorepo. 2019-01-11 16:27:14 +00:00
README.md Update the project name in README.md 2018-10-19 00:03:01 +00:00

README.md

The LLVM Compiler Infrastructure

This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments.