Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions checkout_build_install_llvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch. https://github.com/llvm-mirror is an unofficial LLVM mirror. The official repo is https://github.com/llvm/llvm-project

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still wrong.

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
Expand All @@ -52,4 +52,5 @@ ninja -j$(nproc)
sudo ninja install
rm -rf $WORK_DIR/work/llvm


cd $WORK_DIR/libFuzzer/Fuzzer
./build.sh
2 changes: 1 addition & 1 deletion lessons/04/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down