enable making of AFL-ized versions of stuff
This commit is contained in:
+57
-2
@@ -17,11 +17,16 @@ target_link_libraries(Crash deepstate)
|
||||
|
||||
if (BUILD_LIBFUZZER)
|
||||
add_executable(Crash_LF Crash.cpp)
|
||||
target_link_libraries(Crash_LF deepstate_LF)
|
||||
target_link_libraries (Crash_LF "-fsanitize=fuzzer,undefined")
|
||||
target_link_libraries(Crash_LF deepstate_LF)
|
||||
target_link_libraries (Crash_LF "-fsanitize=fuzzer,undefined")
|
||||
set_target_properties(Crash_LF PROPERTIES COMPILE_DEFINITIONS "LIBFUZZER")
|
||||
endif()
|
||||
|
||||
if (BUILD_AFL)
|
||||
add_executable(Crash_AFL Crash.cpp)
|
||||
target_link_libraries(Crash_AFL deepstate_AFL)
|
||||
endif()
|
||||
|
||||
add_executable(OneOf OneOf.cpp)
|
||||
target_link_libraries(OneOf deepstate)
|
||||
|
||||
@@ -32,6 +37,11 @@ if (BUILD_LIBFUZZER)
|
||||
set_target_properties(OneOf_LF PROPERTIES COMPILE_DEFINITIONS "LIBFUZZER")
|
||||
endif()
|
||||
|
||||
if (BUILD_AFL)
|
||||
add_executable(OneOf_AFL OneOf.cpp)
|
||||
target_link_libraries(OneOf_AFL deepstate_AFL)
|
||||
endif()
|
||||
|
||||
add_executable(Fixture Fixture.cpp)
|
||||
target_link_libraries(Fixture deepstate)
|
||||
|
||||
@@ -42,6 +52,11 @@ if (BUILD_LIBFUZZER)
|
||||
set_target_properties(Fixture_LF PROPERTIES COMPILE_DEFINITIONS "LIBFUZZER")
|
||||
endif()
|
||||
|
||||
if (BUILD_AFL)
|
||||
add_executable(Fixture_AFL Fixture.cpp)
|
||||
target_link_libraries(Fixture_AFL deepstate_AFL)
|
||||
endif()
|
||||
|
||||
add_executable(Primes Primes.cpp)
|
||||
target_link_libraries(Primes deepstate)
|
||||
|
||||
@@ -52,6 +67,11 @@ if (BUILD_LIBFUZZER)
|
||||
set_target_properties(Primes_LF PROPERTIES COMPILE_DEFINITIONS "LIBFUZZER")
|
||||
endif()
|
||||
|
||||
if (BUILD_AFL)
|
||||
add_executable(Primes_AFL Primes.cpp)
|
||||
target_link_libraries(Primes_AFL deepstate_AFL)
|
||||
endif()
|
||||
|
||||
add_executable(Euler Euler.cpp)
|
||||
target_link_libraries(Euler deepstate)
|
||||
|
||||
@@ -62,6 +82,11 @@ if (BUILD_LIBFUZZER)
|
||||
set_target_properties(Euler_LF PROPERTIES COMPILE_DEFINITIONS "LIBFUZZER")
|
||||
endif()
|
||||
|
||||
if (BUILD_AFL)
|
||||
add_executable(Euler_AFL Euler.cpp)
|
||||
target_link_libraries(Euler_AFL deepstate_AFL)
|
||||
endif()
|
||||
|
||||
add_executable(IntegerOverflow IntegerOverflow.cpp)
|
||||
target_link_libraries(IntegerOverflow deepstate)
|
||||
|
||||
@@ -72,6 +97,11 @@ if (BUILD_LIBFUZZER)
|
||||
set_target_properties(IntegerOverflow_LF PROPERTIES COMPILE_DEFINITIONS "LIBFUZZER")
|
||||
endif()
|
||||
|
||||
if (BUILD_AFL)
|
||||
add_executable(IntegerOverflow_AFL IntegerOverflow.cpp)
|
||||
target_link_libraries(IntegerOverflow_AFL deepstate_AFL)
|
||||
endif()
|
||||
|
||||
add_executable(IntegerArithmetic IntegerArithmetic.cpp)
|
||||
target_link_libraries(IntegerArithmetic deepstate)
|
||||
|
||||
@@ -82,6 +112,11 @@ if (BUILD_LIBFUZZER)
|
||||
set_target_properties(IntegerArithmetic_LF PROPERTIES COMPILE_DEFINITIONS "LIBFUZZER")
|
||||
endif()
|
||||
|
||||
if (BUILD_AFL)
|
||||
add_executable(IntegerArithmetic_AFL IntegerArithmetic.cpp)
|
||||
target_link_libraries(IntegerArithmetic_AFL deepstate_AFL)
|
||||
endif()
|
||||
|
||||
add_executable(Lists Lists.cpp)
|
||||
target_link_libraries(Lists deepstate)
|
||||
|
||||
@@ -92,6 +127,11 @@ if (BUILD_LIBFUZZER)
|
||||
set_target_properties(Lists_LF PROPERTIES COMPILE_DEFINITIONS "LIBFUZZER")
|
||||
endif()
|
||||
|
||||
if (BUILD_AFL)
|
||||
add_executable(Lists_AFL Lists.cpp)
|
||||
target_link_libraries(Lists_AFL deepstate_AFL)
|
||||
endif()
|
||||
|
||||
add_executable(StreamingAndFormatting StreamingAndFormatting.cpp)
|
||||
target_link_libraries(StreamingAndFormatting deepstate)
|
||||
|
||||
@@ -102,6 +142,11 @@ if (BUILD_LIBFUZZER)
|
||||
set_target_properties(StreamingAndFormatting_LF PROPERTIES COMPILE_DEFINITIONS "LIBFUZZER")
|
||||
endif()
|
||||
|
||||
if (BUILD_AFL)
|
||||
add_executable(StreamingAndFormatting_AFL StreamingAndFormatting.cpp)
|
||||
target_link_libraries(StreamingAndFormatting_AFL deepstate_AFL)
|
||||
endif()
|
||||
|
||||
add_executable(Runlen Runlen.cpp)
|
||||
target_link_libraries(Runlen deepstate)
|
||||
|
||||
@@ -112,6 +157,11 @@ if (BUILD_LIBFUZZER)
|
||||
set_target_properties(Runlen_LF PROPERTIES COMPILE_DEFINITIONS "LIBFUZZER")
|
||||
endif()
|
||||
|
||||
if (BUILD_AFL)
|
||||
add_executable(Runlen_AFL Runlen.cpp)
|
||||
target_link_libraries(Runlen_AFL deepstate_AFL)
|
||||
endif()
|
||||
|
||||
add_executable(FromEclipser FromEclipser.cpp)
|
||||
target_link_libraries(FromEclipser deepstate)
|
||||
|
||||
@@ -122,6 +172,11 @@ if (BUILD_LIBFUZZER)
|
||||
set_target_properties(FromEclipser_LF PROPERTIES COMPILE_DEFINITIONS "LIBFUZZER")
|
||||
endif()
|
||||
|
||||
if (BUILD_AFL)
|
||||
add_executable(FromEclipser_AFL FromEclipser.cpp)
|
||||
target_link_libraries(FromEclipser_AFL deepstate_AFL)
|
||||
endif()
|
||||
|
||||
if (NOT APPLE)
|
||||
add_executable(Squares Squares.c)
|
||||
target_link_libraries(Squares deepstate)
|
||||
|
||||
Reference in New Issue
Block a user