Всегда проверять флаги для динамического анализа
This commit is contained in:
parent
f1ebe75238
commit
9b8b4fa98e
4
thirdparty/sanitizers/FindCFI.cmake
vendored
4
thirdparty/sanitizers/FindCFI.cmake
vendored
@ -34,9 +34,7 @@ set(FLAG_CANDIDATES
|
|||||||
# add some handy functions
|
# add some handy functions
|
||||||
include(sanitize-helpers)
|
include(sanitize-helpers)
|
||||||
|
|
||||||
if(SANITIZE_CFI)
|
sanitizer_check_compiler_flags("${FLAG_CANDIDATES}" "ControlFlowIntegrity" "CFI")
|
||||||
sanitizer_check_compiler_flags("${FLAG_CANDIDATES}" "ControlFlowIntegrity" "CFI")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
function(add_sanitize_cfi TARGET)
|
function(add_sanitize_cfi TARGET)
|
||||||
sanitizer_check_target(${TARGET})
|
sanitizer_check_target(${TARGET})
|
||||||
|
4
thirdparty/sanitizers/FindLeakSan.cmake
vendored
4
thirdparty/sanitizers/FindLeakSan.cmake
vendored
@ -29,9 +29,7 @@ set(FLAG_CANDIDATES "-g -fsanitize=leak")
|
|||||||
|
|
||||||
include(sanitize-helpers)
|
include(sanitize-helpers)
|
||||||
|
|
||||||
if(SANITIZE_LEAK)
|
sanitizer_check_compiler_flags("${FLAG_CANDIDATES}" "LeakSanitizer" "LeakSan")
|
||||||
sanitizer_check_compiler_flags("${FLAG_CANDIDATES}" "LeakSanitizer" "LeakSan")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
function(add_sanitize_leak TARGET)
|
function(add_sanitize_leak TARGET)
|
||||||
sanitizer_check_target(${TARGET})
|
sanitizer_check_target(${TARGET})
|
||||||
|
4
thirdparty/sanitizers/FindSS.cmake
vendored
4
thirdparty/sanitizers/FindSS.cmake
vendored
@ -29,9 +29,7 @@ set(FLAG_CANDIDATES "-g -fsanitize=safe-stack")
|
|||||||
# add some handy functions
|
# add some handy functions
|
||||||
include(sanitize-helpers)
|
include(sanitize-helpers)
|
||||||
|
|
||||||
if(SANITIZE_SS)
|
sanitizer_check_compiler_flags("${FLAG_CANDIDATES}" "SafeStack" "SS")
|
||||||
sanitizer_check_compiler_flags("${FLAG_CANDIDATES}" "SafeStack" "SS")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
function(add_sanitize_ss TARGET)
|
function(add_sanitize_ss TARGET)
|
||||||
sanitizer_check_target(${TARGET})
|
sanitizer_check_target(${TARGET})
|
||||||
|
Loading…
Reference in New Issue
Block a user