Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move UBSan test suite under test/ | Alexey Samsonov | 2014-02-14 | 32 | -846/+0 |
| | | | | llvm-svn: 201401 | ||||
* | Move shared configs for lit test suites to test/ and unittests/ directories | Alexey Samsonov | 2014-02-14 | 2 | -2/+2 |
| | | | | llvm-svn: 201399 | ||||
* | ubsan: Fix typo in 'TypeCheck/vptr.cpp' test to resolve 32bit failure. | Will Dietz | 2013-12-09 | 1 | -1/+1 |
| | | | | llvm-svn: 196799 | ||||
* | Fix integer tests on platforms where uint64_t is 'unsigned long long'. | Will Dietz | 2013-12-06 | 3 | -3/+3 |
| | | | | llvm-svn: 196612 | ||||
* | [UBSan] Make sure ASan and UBSan interact properly by running each test from ↵ | Alexey Samsonov | 2013-11-14 | 33 | -80/+105 |
| | | | | | | UBSan test suite with and without ASan llvm-svn: 194698 | ||||
* | Overhaul the symbolizer interface. | Peter Collingbourne | 2013-10-25 | 3 | -5/+1 |
| | | | | | | | | | | | | | | | | | | | | | | This moves away from creating the symbolizer object and initializing the external symbolizer as separate steps. Those steps now always take place together. Sanitizers with a legacy requirement to specify their own symbolizer path should use InitSymbolizer to initialize the symbolizer with the desired path, and GetSymbolizer to access the symbolizer. Sanitizers with no such requirement (e.g. UBSan) can use GetOrInitSymbolizer with no need for initialization. The symbolizer interface has been made thread-safe (as far as I can tell) by protecting its member functions with mutexes. Finally, the symbolizer interface no longer relies on weak externals, the introduction of which was probably a mistake on my part. Differential Revision: http://llvm-reviews.chandlerc.com/D1985 llvm-svn: 193448 | ||||
* | Runtime support for the indirect function call checker. | Peter Collingbourne | 2013-10-20 | 4 | -0/+24 |
| | | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1339 llvm-svn: 193060 | ||||
* | [ubsan] Introduce %clangxx substitution for all C++ tests. | Peter Collingbourne | 2013-10-20 | 24 | -55/+57 |
| | | | | llvm-svn: 193059 | ||||
* | Refactor the usage of strip_path_prefix option and make it more consistent ↵ | Alexey Samsonov | 2013-10-04 | 1 | -1/+1 |
| | | | | | | across sanitizers llvm-svn: 191943 | ||||
* | This fixme is resolved, fix the test. | Nick Lewycky | 2013-10-02 | 1 | -2/+1 |
| | | | | llvm-svn: 191810 | ||||
* | Add "CHECK-" prefix to un-break buildbot failure. | Rui Ueyama | 2013-08-12 | 6 | -26/+26 |
| | | | | | | | After r188221, the prefix given by --check-prefix must match with the label as a whole. Substring is not considered to be a correct label anymore. llvm-svn: 188227 | ||||
* | [tests] Update to use lit_config and lit package, as appropriate. | Daniel Dunbar | 2013-08-09 | 2 | -11/+12 |
| | | | | llvm-svn: 188116 | ||||
* | disable pipefail for ubsan. | Rafael Espindola | 2013-07-26 | 1 | -0/+2 |
| | | | | llvm-svn: 187273 | ||||
* | Fix another instance of -ccc-cxx vs. --driver-mode=g++ | Hans Wennborg | 2013-07-18 | 1 | -1/+1 |
| | | | | llvm-svn: 186609 | ||||
* | [ASan] create separate configs for running ASan lit tests in both 32- and ↵ | Alexey Samsonov | 2013-06-07 | 1 | -0/+3 |
| | | | | | | 64-bit mode. Clean up RUN-lines in tests. llvm-svn: 183498 | ||||
* | Remove a bunch of copy-paste: use common config for sanitizer lit/unit tests | Alexey Samsonov | 2013-06-06 | 2 | -24/+3 |
| | | | | llvm-svn: 183407 | ||||
* | Improve support for compiler-rt tests in CMake build. | Alexey Samsonov | 2013-05-27 | 2 | -10/+12 |
| | | | | | | | | Now compiler-rt tests run correctly if compiler-rt is checked out into arbitrary directory (not necessarily projects/compiler-rt). Patch by Greg Fitzgerald! llvm-svn: 182726 | ||||
* | Explicitly list all sanitizer headers in CMake build rules. Make sure ↵ | Alexey Samsonov | 2013-04-11 | 1 | -3/+2 |
| | | | | | | sanitizer lit_tests depend on fresh headers. llvm-svn: 179293 | ||||
* | compiler-rt part of r178194. Remove ubsan test for diagnostic on inf/nan ↵ | Richard Smith | 2013-03-27 | 1 | -4/+2 |
| | | | | | | conversion between floating-point types. llvm-svn: 178195 | ||||
* | Update ubsan test for clang change r177362. | Richard Smith | 2013-03-19 | 1 | -2/+5 |
| | | | | llvm-svn: 177363 | ||||
* | ubsan: Runtime handlers for array indexing checks. | Richard Smith | 2013-02-23 | 1 | -0/+15 |
| | | | | llvm-svn: 175948 | ||||
* | ubsan: Add checking for invalid downcasts. Per [expr.static.cast]p2 and p11, | Richard Smith | 2013-02-13 | 1 | -2/+13 |
| | | | | | | | base-to-derived casts have undefined behavior if the object is not actually an instance of the derived type. Runtime library part. llvm-svn: 175079 | ||||
* | [ubsan] Add deduplication functionality, always enabled. | Will Dietz | 2013-01-09 | 1 | -0/+25 |
| | | | | llvm-svn: 171948 | ||||
* | [ubsan] Check for appropriate types on compound assignment overflow diagnostics. | Will Dietz | 2013-01-07 | 3 | -4/+4 |
| | | | | llvm-svn: 171802 | ||||
* | [ubsan] Don't suggest casting to unsigned for unsigned unary minus overflow. | Will Dietz | 2012-12-31 | 1 | -2/+7 |
| | | | | | | Fixed version of r171273. llvm-svn: 171278 | ||||
* | Revert r171273 which doesn't actually compile. | Chandler Carruth | 2012-12-31 | 1 | -7/+2 |
| | | | | | | | Original commit message: [ubsan] Don't suggest casting to unsigned for unsigned unary minus overflow. llvm-svn: 171277 | ||||
* | [ubsan] Don't suggest casting to unsigned for unsigned unary minus overflow. | Will Dietz | 2012-12-31 | 1 | -2/+7 |
| | | | | llvm-svn: 171273 | ||||
* | [ubsan] Update test now that check recovery is default and has driver flag. | Will Dietz | 2012-12-30 | 1 | -4/+5 |
| | | | | llvm-svn: 171265 | ||||
* | Define COMPILER_RT_CAN_EXECUTE_TESTS variable on platforms where we can ↵ | Alexey Samsonov | 2012-12-27 | 1 | -3/+3 |
| | | | | | | produce working binaries and use it in build rules for sanitizers tests llvm-svn: 171160 | ||||
* | ubsan: Demangle class names, and be more informative when a reinterpret_cast | Richard Smith | 2012-12-18 | 1 | -4/+4 |
| | | | | | | has got us to the wrong offset within an object. llvm-svn: 170423 | ||||
* | ubsan: When diagnosing something wrong somewhere in memory, emit a note | Richard Smith | 2012-12-18 | 2 | -20/+73 |
| | | | | | | | | pointing at the bad location and a snippet of nearby memory values. This is strictly best-effort; reading these bytes to display the note could lead to a seg fault, and that's explicitly OK. llvm-svn: 170415 | ||||
* | ubsan: if the frontend didn't provide us with a source location, try to work | Richard Smith | 2012-12-18 | 2 | -8/+17 |
| | | | | | | | one out from the return address. Currently, we can only resolve this address to a file and line number if we have an external symbolizer. llvm-svn: 170407 | ||||
* | Rein ubsan's vptr sanitizer back a bit. Per core issue 453, binding a reference | Richard Smith | 2012-12-18 | 1 | -3/+2 |
| | | | | | | to an object outside its lifetime does not have undefined behavior. llvm-svn: 170388 | ||||
* | ubsan unit tests for -fsanitize=bool and -fsanitize=enum. | Richard Smith | 2012-12-13 | 2 | -0/+27 |
| | | | | llvm-svn: 170109 | ||||
* | [ubsan] Refactor handlers to have separate entry points for aborting. | Will Dietz | 2012-12-02 | 1 | -0/+21 |
| | | | | | | | | | If user specifies aborting after a recoverable failed check is appropriate, frontend should emit call to the _abort variant. Test this behavior with newly added -fsanitize-recover flag. llvm-svn: 169113 | ||||
* | [ubsan] Replace "fatal error" with "runtime error". | Will Dietz | 2012-12-02 | 19 | -42/+42 |
| | | | | llvm-svn: 169112 | ||||
* | ubsan: Disable __int128 tests if the host Clang does not support it. These | Richard Smith | 2012-11-29 | 6 | -11/+45 |
| | | | | | | | tests will still fail if compiler-rt was built with a compiler without __int128 support, but the host compiler has __int128 support. llvm-svn: 168955 | ||||
* | ubsan: Support unsigned overflows, and divide-by-zero int/float split. | Will Dietz | 2012-11-27 | 5 | -4/+92 |
| | | | | llvm-svn: 168700 | ||||
* | ubsan: fix broken test case by using brand new [[@LINE]] FileCheck feature | Alexey Samsonov | 2012-11-16 | 1 | -3/+3 |
| | | | | llvm-svn: 168170 | ||||
* | UBSan: enable CMake build on Darwin. Fix two failing tests and disable the ↵ | Alexey Samsonov | 2012-11-16 | 4 | -4/+8 |
| | | | | | | test which produces linker errors on Darwin. llvm-svn: 168169 | ||||
* | Update compiler-rt tests to match flag renaming/deprecation in Clang. | Richard Smith | 2012-11-06 | 15 | -34/+34 |
| | | | | llvm-svn: 167434 | ||||
* | -fcatch-undefined-behavior checking for appropriate vptr value: library side. | Richard Smith | 2012-10-25 | 1 | -0/+74 |
| | | | | llvm-svn: 166660 | ||||
* | -fcatch-undefined-behavior: Runtime library support for trapping conversions ↵ | Richard Smith | 2012-10-12 | 1 | -0/+90 |
| | | | | | | | | | to or from a floating-point type where the source value is not in the range of representable values of the destination type. llvm-svn: 165844 | ||||
* | -fcatch-undefined-behavior: handler for VLA bound which evaluates to a ↵ | Richard Smith | 2012-10-10 | 1 | -0/+11 |
| | | | | | | non-positive value. llvm-svn: 165582 | ||||
* | Add a runtime diagnostics library for Clang's -fcatch-undefined-behavior. | Richard Smith | 2012-10-09 | 15 | -0/+346 |
llvm-svn: 165533 |