From 9cca805c32db20156c7727ee07f259687a8202d9 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Fri, 18 Nov 2016 16:07:57 -0800 Subject: [PATCH] Update new_target.md --- docs/new_target.md | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/docs/new_target.md b/docs/new_target.md index b3ff04567..e8b0c7a27 100644 --- a/docs/new_target.md +++ b/docs/new_target.md @@ -51,30 +51,6 @@ COPY build.sh fuzzer.cc $SRC/ # install build script and other sourc ``` Expat example: [expat/Dockerfile](../targets/expat/Dockerfile) -## Create Fuzzer Source File - -Create a new .cc file, define a `LLVMFuzzerTestOneInput` function and call -your target: - -```c++ -#include -#include - -extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { - // put your fuzzing code here and use data+size as input. - return 0; -} -``` - -Make sure you add the file to your Docker image: -```docker -COPY build.sh my_fuzzer.cc $SRC/ # install build script & fuzzer. -``` - -There are [lots](../targets/libxml2/libxml2_xml_read_memory_fuzzer.cc) -[of](../targets/expat/parse_fuzzer.cc) [examples](../targets/zlib/zlib_uncompress_fuzzer.cc) -in this project repository. - ### Fuzzer execution environment [This page](fuzzer_environment.md) gives information about the environment that