Matt Arsenault
002fdca749
Merge pull request #20 from 9fcc/shortest-ext
Fix language detection with file names containing more than one dot
pirms 7 gadiem
Andrey Dotsenko
0590614f30
Fix language detection for files with dot in their names
pirms 7 gadiem
Andrey Dotsenko
6f451ad0cf
Force ASAN with tests and make them passed when failed
pirms 7 gadiem
Matt Arsenault
6947cff3a9
Merge pull request #15 from TheErk/fix-README-add_sanitizer_blacklist
Fix reference to sanitizer_add_blacklist_file in README.md
pirms 8 gadiem
Eric Noulard
0bdbdbf517
Fix reference to sanitizer_add_blacklist_file in README.md
pirms 8 gadiem
Matt Arsenault
6b9a849ff4
Merge pull request #14 from amin-jabri/tsan_osx
Reenable TSan on macOS as newer Xcode toolchains support it.
pirms 8 gadiem
Matt Arsenault
c5055c49ea
Merge pull request #12 from TheErk/fix-spellingTypos
Fix a couple of spelling typos
pirms 8 gadiem
Mohamed Amin JABRI
b719221996
Reenable TSan on macOS as newer Xcode toolchains support it.
pirms 8 gadiem
Eric Noulard
3c2c439ef8
Fix a couple of spelling typos
pirms 8 gadiem
Matt Arsenault
f09151bc87
Merge pull request #11 from Placinta/master
Fix option type in add_sanitizers check
pirms 9 gadiem
Alexandru Croitor
89c899140f
Fix option type in add_sanitizers check
pirms 9 gadiem
Matt Arsenault
295c360967
Merge pull request #10 from RWTH-ELP/feature/fewer_messages
Show fewer warnings for targets.
pirms 9 gadiem
Alexander Haase
a1bee9b178
Show fewer warnings for targets.
Instead of printing the same message over and over again, if a target can't use
a specific sanitizer, the message will be printed only once for the first
affected target now.
pirms 9 gadiem
Matt Arsenault
37d5ac8067
Merge pull request #6 from RWTH-ELP/master
Fixed links.
pirms 10 gadiem
Alexander Haase
b29fe1129c
Fixed links.
Fixed links in README.md after merge to upstream.
pirms 10 gadiem
Matt Arsenault
998db11834
Merge pull request #5 from RWTH-ELP/restructuring
Restructuring and new features
pirms 10 gadiem
Alexander Haase
4f5410511a
Updated README file.
pirms 10 gadiem
Alexander Haase
5bfe8a8e51
Support multiple targets in add_sanitizers.
pirms 10 gadiem
Alexander Haase
8fe13da3a5
Added asan-wrapper.
In some special cases static linking the sanitizers won't work, and you have to
preload libasan. To find the right libasan depending on the application to be
executed, a wrapper script was added. The location of the wrapper script can be
accessed via ASan_WRAPPER variable.
pirms 10 gadiem
Alexander Haase
8d8c0f7a4e
Bugfixes.
pirms 10 gadiem
Alexander Haase
179e77d612
Added option for static linking gcc sanitizers.
If you like to preload a sanitized library in front of an application, it will
fail, because it is not the first in the library list anymore. This behaviour
is gcc specific - clang will static link the sanitizers instead. To get the
same for gcc, the new SANITIZE_LINK_STATIC flag will link the sanitizers
static in gcc environments.
Note: The preloaded executable must be sanitized, too! Otherwise ASan will
print an error message!
pirms 10 gadiem
Alexander Haase
a6b6ae43db
Merge branch 'remove_optimization' into one_module
pirms 10 gadiem
Alexander Haase
6d56fe50e7
Removed optimization flags.
Due optimizing the code is optional for using the sanitizers, the user should
set an optimisation level by his choice on his own.
pirms 10 gadiem
Alexander Haase
1a68d6aefe
Little bugfixes.
pirms 10 gadiem
Alexander Haase
1cefaef507
Added function to set sanitizer blacklist.
pirms 10 gadiem
Alexander Haase
f566e2b9ec
Added checks to avoid bad sanitizer combinations.
Some sanitizers are not compatible with other sanitizers. Added some checks to
avoid these combinations at configuration time.
pirms 10 gadiem
Alexander Haase
6975d64d6b
Flags will be searched only once per compiler.
If a compiler does not support sanitizing, it will not be checked a second time.
pirms 10 gadiem
Alexander Haase
de1a134183
Check if MemorySanitizer is used on x86_64 Linux.
According to the MemorySanitizer documentation, it is only compatible with 64bit
Linux at the moment.
pirms 10 gadiem
Alexander Haase
4d96db375f
Check if ThreadSanitizer is used on x86_64 Linux.
According to the ThreadSanitizer documentation, it is only compatible with 64bit
Linux at the moment.
pirms 10 gadiem
Alexander Haase
03db9d9383
Restructured all sanitizer modules.
pirms 10 gadiem
Alexander Haase
b492553f61
New central module FindSanitizers.cmake.
* Added a new module FindSanitizers with new function add_sanitizers to combine
all sanitizers in one function instead of adding each one by one.
* Code of FindASan.cmake was outdourced into helper functions, so that the code
may be used by other sanitizer modules, too.
* AddressSanitizer will be used with -O1 now to get a better performance.
pirms 10 gadiem
Alexander Haase
8f2015a4d3
Changed copyright notice.
pirms 10 gadiem
Alexander Haase
925961bb5e
Bugfix in CMake cache docs.
pirms 10 gadiem
Alexander Haase
88e75c6b03
Enabled debug symbols for ASan.
pirms 10 gadiem
Alexander Haase
584f137e70
Reworked FindASan.cmake.
* removed build type ASAN. Targets should define ASan usage by sanitize_address
function
* compiler flags will be searched by compiler instead of per language
* FindASan warns, if a target can't be sanitized because of incompatible
compilers
* added some helper functions
pirms 10 gadiem
Alexander Haase
c96a15b46c
Bugfix in FindASan.cmake
pirms 10 gadiem
Alexander Haase
d81be39678
Bugfix in FindASan.cmake.
pirms 10 gadiem
Alexander Haase
f62b5858ac
Compile flags will now be set per-source file.
Thus C can be mixed with Fortran and the objects can be build with different
compilers, not both may support AddressSanitizer.
pirms 10 gadiem
Alexander Haase
c29aa33f11
Check ASan support for all enabled compilers.
Instead of fix checking for C and CXX compilers, all enabled languages will be
tested now.
pirms 10 gadiem
Alexander Haase
e39082050c
Removed continue statement in FindASan.cmake
Older CMake versions are not capable of continue in foreach functions.
pirms 10 gadiem
Alexander Haase
41e635c9ca
Restructured code of FindASan.cmake
pirms 10 gadiem
Alexander Haase
4fd453301a
Moved CMake files and added a simple testcase
pirms 10 gadiem
Matt Arsenault
b61ffc8ceb
Merge pull request #4 from smspillaz/issues/2
Set the HAVE_MEMORY_SANITIZER and HAVE_ADDRESS_SANITIZER cache entries.
pirms 11 gadiem
Matt Arsenault
666bcc560d
Merge pull request #3 from smspillaz/issues/1
Don't emit an error for deleting an object with a nonvirtual dtor.
pirms 11 gadiem
Sam Spilsbury
9b343f8e7e
Set the HAVE_MEMORY_SANITIZER and HAVE_ADDRESS_SANITIZER cache entries.
These were (inconsistently) not being set as opposed to
HAVE_THREAD_SANITIZER and HAVE_UNDEFINED_BEHAVIOUR_SANITIZER
pirms 11 gadiem
Sam Spilsbury
1ec58d4183
Don't emit an error for deleting an object with a nonvirtual dtor.
We want that behaviour at runtime to make sure ubsan works
pirms 11 gadiem
Matt Arsenault
42eac1f7af
Add modules for asan, msan, tsan and ubsan
pirms 12 gadiem
Matt Arsenault
1121b004db
Initial commit
pirms 12 gadiem