about summary refs log tree commit diff
path: root/src/test/ui/sanitize
AgeCommit message (Collapse)AuthorLines
2021-02-07HWASan supportTri Vo-0/+19
2020-12-10Fix sanitizer test output matchingCorey Farwell-1/+1
2020-11-12fully exploited the dropped support of LLVM 8DevJPM-1/+0
This commit grepped for LLVM_VERSION_GE, LLVM_VERSION_LT, get_major_version and min-llvm-version and statically evaluated every expression possible (and sensible) assuming that the LLVM version is >=9 now
2020-07-19Add missing : after *llvm-versionLzu Tao-1/+1
2020-06-20Support sanitizers on aarch64-unknown-linux-gnuTomasz Miąsko-1/+1
2020-06-19Rollup merge of #73347 - tmiasko:incompatible-sanitizers, r=nikicManish Goregaokar-3/+12
Diagnose use of incompatible sanitizers Emit an error when incompatible sanitizer are configured through command line options. Previously the last one configured prevailed and others were silently ignored. Additionally use a set to represent configured sanitizers, making it possible to enable multiple sanitizers at once. At least in principle, since currently all of them are considered to be incompatible with others.
2020-06-14Diagnose use of incompatible sanitizersTomasz Miąsko-3/+12
Emit an error when incompatible sanitizer are configured through command line options. Previously the last one configured prevailed and others were silently ignored. Additionally use a set to represent configured sanitizers, making it possible to enable multiple sanitizers at once. At least in principle, since currently all of them are considered to be incompatible with others.
2020-06-13compiletest: Add directives to detect sanitizer supportTomasz Miąsko-11/+12
Add needs-sanitizer-{address,leak,memory,thread} directive indicating that test requires target with support for specific sanitizer. This is an addition to the existing needs-sanitizer-support directive indicating that test requires a sanitizer runtime library.
2020-05-14Consistently use LLVM lifetime markers during codegenTomasz Miąsko-0/+31
Ensure that inliner inserts lifetime markers if they have been emitted during codegen. Otherwise if allocas from inlined functions are merged together, lifetime markers from one function might invalidate load & stores performed by the other one.
2020-04-11rustc: Add a warning count upon completionRoccoDev-0/+2
2020-04-10Add ThreadSanitizer test caseTomasz Miąsko-0/+57
2020-04-06Move sanitize-inline-always test to sanitize directoryTomasz Miąsko-0/+28
2020-03-08unix: Don't override existing SIGSEGV/BUS handlersJosh Stone-0/+19
Although `stack_overflow::init` runs very early in the process, even before `main`, there may already be signal handlers installed for things like the address sanitizer. In that case, just leave it alone, and don't bother trying to allocate our own signal stacks either.
2020-03-08Rollup merge of #69800 - tmiasko:address-g, r=nikicMazdak Farrokhzad-3/+2
Compile address sanitizer test with debuginfo This makes error-pattern to match regardless of current configuration of `rust.debuginfo-level-tests` in `config.toml`.
2020-03-07Compile address sanitizer test with debuginfoTomasz Miąsko-3/+2
This makes error-pattern to match regardless of current configuration of `rust.debuginfo-level-tests` in `config.toml`.
2020-03-06fix various typosMatthias Krüger-1/+1
2020-03-03Add test for -Znew-llvm-pass-manager -Clto=thin -Zsanitizer=...Tomasz Miąsko-0/+27
Additionally verify that the current implementation of LLVM version check (which uses lexicographic ordering) is good enough to exclude versions before LLVM 9, where the new LLVM pass manager is unsupported.
2020-01-27Move sanitizer tests to a separate directoryTomasz Miąsko-0/+141