Browse Source

remove bad fuzzer

pull/583/head
Chris Wolfe 5 years ago
parent
commit
31a8afbf88
3 changed files with 0 additions and 11 deletions
  1. +0
    -1
      fuzz/CMakeLists.txt
  2. +0
    -9
      fuzz/bad_fuzzer.cc
  3. +0
    -1
      fuzz/build.sh

+ 0
- 1
fuzz/CMakeLists.txt View File

@@ -17,7 +17,6 @@ else()
endif()

foreach(FUZZERNAME
bad_fuzzer
tokener_parse_ex_fuzzer)

add_executable(${FUZZERNAME} ${FUZZERNAME}.cc)


+ 0
- 9
fuzz/bad_fuzzer.cc View File

@@ -1,9 +0,0 @@
#include <stdint.h>

#include <stddef.h>

extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
int *array = new int[100];
delete [] array;
return array[size]; // BOOM
}

+ 0
- 1
fuzz/build.sh View File

@@ -33,4 +33,3 @@ for F in $fuzzerFiles; do
FN=$(basename -- $F)
cp "$SRC/corpus.zip" "$OUT/${FN}_seed_corpus.zip"
done
# for fuzzer in fuzz copy the json corpus as a zip file

Loading…
Cancel
Save