Commit Graph

15 Commits

Author SHA1 Message Date
26eced86d8 Добавлены модули SafeStack и Control Flow Integrity 2019-08-10 10:48:21 +03:00
69437cd645 Форматирование кода 2019-08-10 10:33:41 +03:00
07be757faf Add module for leak sanitizer 2019-07-02 09:47:11 +03:00
82086416a0 Allow checking whether sanitizers are available 2019-07-02 09:33:34 +03:00
Gunnar Roth
798d9a29a2 handle objeclib only input for target
if compiler num is 0 this is not always an error,
as that  can also happen, when having only a objectlib
as input and no other source files.
2018-10-10 17:36:42 +02:00
Andrey Dotsenko
d093052a52 Fix unclear error while accidentally sanitizing interface library
Interface libraries added since CMake 3.0 version have INTERFACE_SOURCES property instead of SOURCES so it leads to error which is unclear and prevents project from compiling. Warning would be enough it this case.
2018-08-28 22:28:31 +03:00
Eric Noulard
3c2c439ef8 Fix a couple of spelling typos 2017-07-05 15:01:05 +02:00
Alexandru Croitor
89c899140f Fix option type in add_sanitizers check 2017-02-23 15:34:51 +01:00
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.
2017-02-21 16:21:48 +01:00
Alexander Haase
5bfe8a8e51 Support multiple targets in add_sanitizers. 2016-06-14 01:12:11 +02:00
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!
2016-05-12 19:59:28 +02:00
Alexander Haase
1cefaef507 Added function to set sanitizer blacklist. 2016-04-15 14:25:58 +02:00
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.
2016-04-12 21:04:21 +02:00
Alexander Haase
03db9d9383 Restructured all sanitizer modules. 2016-04-06 19:15:25 +02:00
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.
2016-04-06 18:48:16 +02:00