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