Skip to content

Commit 8ceff56

Browse files
committed
removed custom mutator example
1 parent 768f398 commit 8ceff56

File tree

3 files changed

+0
-119
lines changed

3 files changed

+0
-119
lines changed

README.md

-6
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@ Execute with:
3737
```sh
3838
cifuzz run structured_input_checks_fuzz_test
3939
```
40-
* [Custom Mutator Example](src/advanced_examples/custom_mutator_example_checks_test.cpp#L37):
41-
An example that shows how to utilize custom mutators to make sure the fuzzer only creates valid inputs.
42-
Execute with:
43-
```sh
44-
cifuzz run custom_mutator_example_checks_fuzz_test
45-
```
4640
* [Slow Input Example](src/advanced_examples/slow_input_checks_test.cpp#L17):
4741
An example that shows how the fuzzer can detect inputs that lead to a slow program execution.
4842
Execute with:

src/advanced_examples/CMakeLists.txt

-33
Original file line numberDiff line numberDiff line change
@@ -16,39 +16,8 @@ target_link_libraries(explore_me_advanced
1616
-lz
1717
)
1818

19-
20-
#
21-
# Block defining the location of the fuzzer_no_main library that is needed to compile this example
22-
#
23-
24-
# Uncomment and change to your own path if you want to specify a specific fuzzer_no_main library
25-
#set(FUZZER_NO_MAIN_PATH /usr/lib/clang/${CMAKE_C_COMPILER_VERSION}/lib/linux/libclang_rt.fuzzer_no_main-${CMAKE_SYSTEM_PROCESSOR}.a)
26-
27-
28-
# If location is not manually defined, we search for it.
29-
if (NOT DEFINED FUZZER_NO_MAIN_PATH)
30-
execute_process(COMMAND clang --print-file-name libclang_rt.fuzzer_no_main-${CMAKE_SYSTEM_PROCESSOR}.a
31-
OUTPUT_VARIABLE FUZZER_NO_MAIN_PATH
32-
OUTPUT_STRIP_TRAILING_WHITESPACE
33-
)
34-
35-
# If the first search was not successful, we check if the dependency is there, but does not contain the architecture information
36-
# in its name, as it is common if you compile the sources yourself.
37-
if(NOT ${FUZZER_NO_MAIN_PATH} MATCHES "\/")
38-
execute_process(COMMAND clang --print-file-name libclang_rt.fuzzer_no_main.a
39-
OUTPUT_VARIABLE FUZZER_NO_MAIN_PATH
40-
OUTPUT_STRIP_TRAILING_WHITESPACE
41-
)
42-
endif()
43-
endif()
44-
45-
#
46-
# End of fuzzer_no_main definition
47-
#
48-
4919
foreach(TestType IN ITEMS
5020
structured_input_checks
51-
custom_mutator_example_checks
5221
slow_input_checks
5322
)
5423

@@ -61,7 +30,6 @@ foreach(TestType IN ITEMS
6130
)
6231

6332
target_link_libraries(${TestType}_test
64-
${FUZZER_NO_MAIN_PATH}
6533
explore_me_advanced
6634
GTest::gtest_main
6735
)
@@ -75,7 +43,6 @@ foreach(TestType IN ITEMS
7543
)
7644

7745
target_link_libraries(${TestType}_fuzz_test
78-
${FUZZER_NO_MAIN_PATH}
7946
explore_me_advanced
8047
GTest::gtest
8148
)

src/advanced_examples/custom_mutator_example_checks_test.cpp

-80
This file was deleted.

0 commit comments

Comments
 (0)