diff --git a/checkout_build_install_llvm.sh b/checkout_build_install_llvm.sh index 19f26b2..721d45c 100755 --- a/checkout_build_install_llvm.sh +++ b/checkout_build_install_llvm.sh @@ -28,11 +28,11 @@ WORK_DIR=$PWD mkdir -p $WORK_DIR/src # Checkout -cd $WORK_DIR/src && git clone --depth 1 http://llvm.org/git/llvm.git -cd $WORK_DIR/src/llvm/tools && git clone --depth 1 http://llvm.org/git/clang.git -cd $WORK_DIR/src/llvm/projects && git clone --depth 1 http://llvm.org/git/compiler-rt.git -cd $WORK_DIR/src/llvm/projects && git clone --depth 1 http://llvm.org/git/libcxx.git -cd $WORK_DIR/src/llvm/projects && git clone --depth 1 http://llvm.org/git/libcxxabi.git +cd $WORK_DIR/src && git clone --depth 1 https://github.com/llvm-mirror/llvm.git +cd $WORK_DIR/src/llvm/tools && git clone --depth 1 https://github.com/llvm-mirror/clang.git +cd $WORK_DIR/src/llvm/projects && git clone --depth 1 https://github.com/llvm-mirror/compiler-rt.git +cd $WORK_DIR/src/llvm/projects && git clone --depth 1 https://github.com/llvm-mirror/libcxx.git +cd $WORK_DIR/src/llvm/projects && git clone --depth 1 https://github.com/llvm-mirror/libcxxabi.git # Uncomment if you want *fresh* libFuzzer from checkouted repository. #rm -r $WORK_DIR/libFuzzer/Fuzzer @@ -52,4 +52,5 @@ ninja -j$(nproc) sudo ninja install rm -rf $WORK_DIR/work/llvm - +cd $WORK_DIR/libFuzzer/Fuzzer +./build.sh diff --git a/lessons/04/README.md b/lessons/04/README.md index d9411d2..e0c3f20 100644 --- a/lessons/04/README.md +++ b/lessons/04/README.md @@ -34,7 +34,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { Compile the fuzzer in the following way: ```bash -clang++ -g -std=c++11 -fsanitize=address -fsanitize-coverage=trace-pc-guard \ +clang++ -g -std=c++11 -fsanitize=fuzzer,address \ first_fuzzer.cc ../../libFuzzer/libFuzzer.a \ -o first_fuzzer ```