summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/ubsan/lit_tests
Commit message (Collapse)AuthorAgeFilesLines
* Move UBSan test suite under test/Alexey Samsonov2014-02-1432-846/+0
| | | | llvm-svn: 201401
* Move shared configs for lit test suites to test/ and unittests/ directoriesAlexey Samsonov2014-02-142-2/+2
| | | | llvm-svn: 201399
* ubsan: Fix typo in 'TypeCheck/vptr.cpp' test to resolve 32bit failure.Will Dietz2013-12-091-1/+1
| | | | llvm-svn: 196799
* Fix integer tests on platforms where uint64_t is 'unsigned long long'.Will Dietz2013-12-063-3/+3
| | | | llvm-svn: 196612
* [UBSan] Make sure ASan and UBSan interact properly by running each test from ↵Alexey Samsonov2013-11-1433-80/+105
| | | | | | UBSan test suite with and without ASan llvm-svn: 194698
* Overhaul the symbolizer interface.Peter Collingbourne2013-10-253-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 Collingbourne2013-10-204-0/+24
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1339 llvm-svn: 193060
* [ubsan] Introduce %clangxx substitution for all C++ tests.Peter Collingbourne2013-10-2024-55/+57
| | | | llvm-svn: 193059
* Refactor the usage of strip_path_prefix option and make it more consistent ↵Alexey Samsonov2013-10-041-1/+1
| | | | | | across sanitizers llvm-svn: 191943
* This fixme is resolved, fix the test.Nick Lewycky2013-10-021-2/+1
| | | | llvm-svn: 191810
* Add "CHECK-" prefix to un-break buildbot failure.Rui Ueyama2013-08-126-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 Dunbar2013-08-092-11/+12
| | | | llvm-svn: 188116
* disable pipefail for ubsan.Rafael Espindola2013-07-261-0/+2
| | | | llvm-svn: 187273
* Fix another instance of -ccc-cxx vs. --driver-mode=g++Hans Wennborg2013-07-181-1/+1
| | | | llvm-svn: 186609
* [ASan] create separate configs for running ASan lit tests in both 32- and ↵Alexey Samsonov2013-06-071-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 testsAlexey Samsonov2013-06-062-24/+3
| | | | llvm-svn: 183407
* Improve support for compiler-rt tests in CMake build.Alexey Samsonov2013-05-272-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 Samsonov2013-04-111-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 Smith2013-03-271-4/+2
| | | | | | conversion between floating-point types. llvm-svn: 178195
* Update ubsan test for clang change r177362.Richard Smith2013-03-191-2/+5
| | | | llvm-svn: 177363
* ubsan: Runtime handlers for array indexing checks.Richard Smith2013-02-231-0/+15
| | | | llvm-svn: 175948
* ubsan: Add checking for invalid downcasts. Per [expr.static.cast]p2 and p11,Richard Smith2013-02-131-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 Dietz2013-01-091-0/+25
| | | | llvm-svn: 171948
* [ubsan] Check for appropriate types on compound assignment overflow diagnostics.Will Dietz2013-01-073-4/+4
| | | | llvm-svn: 171802
* [ubsan] Don't suggest casting to unsigned for unsigned unary minus overflow.Will Dietz2012-12-311-2/+7
| | | | | | Fixed version of r171273. llvm-svn: 171278
* Revert r171273 which doesn't actually compile.Chandler Carruth2012-12-311-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 Dietz2012-12-311-2/+7
| | | | llvm-svn: 171273
* [ubsan] Update test now that check recovery is default and has driver flag.Will Dietz2012-12-301-4/+5
| | | | llvm-svn: 171265
* Define COMPILER_RT_CAN_EXECUTE_TESTS variable on platforms where we can ↵Alexey Samsonov2012-12-271-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_castRichard Smith2012-12-181-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 noteRichard Smith2012-12-182-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 workRichard Smith2012-12-182-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 referenceRichard Smith2012-12-181-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 Smith2012-12-132-0/+27
| | | | llvm-svn: 170109
* [ubsan] Refactor handlers to have separate entry points for aborting.Will Dietz2012-12-021-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 Dietz2012-12-0219-42/+42
| | | | llvm-svn: 169112
* ubsan: Disable __int128 tests if the host Clang does not support it. TheseRichard Smith2012-11-296-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 Dietz2012-11-275-4/+92
| | | | llvm-svn: 168700
* ubsan: fix broken test case by using brand new [[@LINE]] FileCheck featureAlexey Samsonov2012-11-161-3/+3
| | | | llvm-svn: 168170
* UBSan: enable CMake build on Darwin. Fix two failing tests and disable the ↵Alexey Samsonov2012-11-164-4/+8
| | | | | | test which produces linker errors on Darwin. llvm-svn: 168169
* Update compiler-rt tests to match flag renaming/deprecation in Clang.Richard Smith2012-11-0615-34/+34
| | | | llvm-svn: 167434
* -fcatch-undefined-behavior checking for appropriate vptr value: library side.Richard Smith2012-10-251-0/+74
| | | | llvm-svn: 166660
* -fcatch-undefined-behavior: Runtime library support for trapping conversions ↵Richard Smith2012-10-121-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 Smith2012-10-101-0/+11
| | | | | | non-positive value. llvm-svn: 165582
* Add a runtime diagnostics library for Clang's -fcatch-undefined-behavior.Richard Smith2012-10-0915-0/+346
llvm-svn: 165533
OpenPOWER on IntegriCloud