update cmake file for two fuzzing methods
@@ -200,8 +200,10 @@ if ("x${CMAKE_C_COMPILER_ID}" STREQUAL "xClang" OR "x${CMAKE_C_COMPILER_ID}" STR
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
endif ()
if (FUZZING_MODE)
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O1 -fsanitize-memory-track-origins -fno-omit-frame-pointer -fsanitize=fuzzer,memory -fsanitize-coverage=trace-pc-guard,trace-cmp,trace-gep,trace-div")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O1 -fsanitize-memory-track-origins -fno-omit-frame-pointer -fsanitize=fuzzer,memory -fsanitize-coverage=trace-pc-guard,trace-cmp,trace-gep,trace-div")
+ #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O1 -fsanitize-memory-track-origins -fno-omit-frame-pointer -fsanitize=fuzzer,memory -fsanitize-coverage=trace-pc-guard,trace-cmp,trace-gep,trace-div")
+ #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O1 -fsanitize-memory-track-origins -fno-omit-frame-pointer -fsanitize=fuzzer,memory -fsanitize-coverage=trace-pc-guard,trace-cmp,trace-gep,trace-div")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O1 -fno-omit-frame-pointer -fsanitize=fuzzer,address -fsanitize-coverage=trace-pc-guard,trace-cmp,trace-gep,trace-div")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O1 -fno-omit-frame-pointer -fsanitize=fuzzer,address -fsanitize-coverage=trace-pc-guard,trace-cmp,trace-gep,trace-div")
endif ()
endif ()
