summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/ubsan/TestCases/Integer/suppressions.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [ubsan] Make suppressions.cpp test pass for me on WindowsReid Kleckner2019-02-011-1/+4
| | | | | | | | | | | The test seems to be failing because the module suppression file contains a colon. I found that it was sufficient to just use the basename of the suppression file. While I was here, I noticed that we don't implement IsAbsolutePath for Windows, so I added it. llvm-svn: 352921
* [UBsan] Enable subset of unit tests for OpenBSDDavid Carlier2018-06-301-0/+2
| | | | | | | | | | Reviewers: kubamracek, krytarowski Reviewed By: krytarowski Differential Revision: https://reviews.llvm.org/D48805 llvm-svn: 336053
* [sanitizer] Test ubsan and cfi on android.Evgeniy Stepanov2017-10-061-0/+1
| | | | | | | | | | | | | | | Summary: Enable check-cfi and check-ubsan on Android. Check-ubsan includes standalone and ubsan+asan, but not tsan or msan. Cross-dso cfi tests are disabled for now. Reviewers: vitalybuka, pcc Subscribers: srhines, kubamracek, llvm-commits, mgorny Differential Revision: https://reviews.llvm.org/D38608 llvm-svn: 315105
* When building without DIA SDK, don't set suppressions.cpp failNico Weber2016-01-221-7/+4
| | | | | | | | | | | This test requires llvm-symbolizer to be able to convert a stack address into a function name. It is only able to do this if the DIA SDK was found at cmake time. Add a lit feature for this, and let the test depend on it. See also discussion in D15363. llvm-svn: 258545
* Re-disable suppressions.cpp on Windows.Nico Weber2016-01-151-0/+6
| | | | | | See discussion in http://reviews.llvm.org/D15363 llvm-svn: 257952
* Make ubsan suppression test pass on Windows.Nico Weber2016-01-081-13/+5
| | | | llvm-svn: 257183
* XFAIL ubsan suppressions.cpp test on Windows for now.Nico Weber2015-12-231-0/+8
| | | | llvm-svn: 256307
* [UBSan] Implement runtime suppressions (PR25066).Alexey Samsonov2015-12-181-0/+33
Summary: Add the ability to suppress UBSan reports for files/functions/modules at runtime. The user can now pass UBSAN_OPTIONS=suppressions=supp.txt with the contents of the form: signed-integer-overflow:file-with-known-overflow.cpp alignment:function_doing_unaligned_access vptr:shared_object_with_vptr_failures.so Suppression categories match the arguments passed to -fsanitize= flag (although, see below). There is no overhead if suppressions are not provided. Otherwise there is extra overhead for symbolization. Limitations: 1) sometimes suppressions need debug info / symbol table to function properly (although sometimes frontend generates enough info to do the match). 2) it's only possible to suppress recoverable UB kinds - if you've built the code with -fno-sanitize-recover=undefined, suppressions will not work. 3) categories are fine-grained check kinds, not groups like "undefined" or "integer", so you can't write "undefined:file_with_ub.cc". Reviewers: rsmith, kcc Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D15363 llvm-svn: 256018
OpenPOWER on IntegriCloud