Skip to content
Browse files

Move fuzzing tutorial from google/fuzzer-test-suite. (#16)

  • Loading branch information...
morehouse committed Sep 27, 2019
1 parent 983185a commit b937a7bbf67ce00d306e708afd5a10372116e7ba
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,15 @@
#include <stdint.h>
#include <stddef.h>

bool FuzzMe(const uint8_t *Data, size_t DataSize) {
return DataSize >= 3 &&
Data[0] == 'F' &&
Data[1] == 'U' &&
Data[2] == 'Z' &&
Data[3] == 'Z'; // :‑<

extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
FuzzMe(Data, Size);
return 0;
@@ -0,0 +1,8 @@
curl$CLANG_VERSION/$CLANG_DIR.tar.xz | tar xfJ -
sudo rm -rf /usr/local/bin/clang* /usr/local/lib/clang
sudo cp -rf $CLANG_DIR/bin/* /usr/local/bin
sudo cp -rf $CLANG_DIR/lib/clang /usr/local/lib
rm -rf $CLANG_DIR
@@ -0,0 +1,3 @@
sudo apt-get update
sudo apt-get --yes install curl subversion screen gcc g++ cmake ninja-build golang autoconf libtool apache2 python-dev pkg-config zlib1g-dev libgcrypt11-dev libgss-dev libssl-dev libxml2-dev ragel nasm libarchive-dev make automake libdbus-1-dev libboost-dev autoconf-archive

Large diffs are not rendered by default.

0 comments on commit b937a7b

Please sign in to comment.
You can’t perform that action at this time.