Skip to content

Commit

Permalink
update fuzzers to fix linkage
Browse files Browse the repository at this point in the history
  • Loading branch information
addisoncrump committed Aug 19, 2024
1 parent 3d01e86 commit b5027cf
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions fuzzers/gramatron/builder.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /rustup.sh && \
# Download libafl
RUN git clone https://github.com/AFLplusplus/libafl_fuzzbench /libafl_fuzzbench && \
cd /libafl_fuzzbench && \
git checkout 7c1b2aad1c458cca7ce50097e53db07ec7d7fdbe && \
git checkout b7fc9fd143daff0190fd623ed3a8b9fbc64cc00c && \
git submodule update --init

# Compile libafl
RUN cd /libafl_fuzzbench/ && unset CFLAGS && unset CXXFLAGS && \
export CC=clang && export CXX=clang++ && \
export LIBAFL_EDGES_MAP_SIZE=2621440 && \
PATH="/root/.cargo/bin:$PATH" cargo build --release
PATH="/root/.cargo/bin:$PATH" cargo build --release -p gramatron

RUN wget https://gist.githubusercontent.com/andreafioraldi/e5f60d68c98b31665a274207cfd05541/raw/4da351a321f1408df566a9cf2ce7cde6eeab3904/empty_fuzzer_lib.c -O /empty_fuzzer_lib.c && \
clang -c /empty_fuzzer_lib.c && \
Expand Down
4 changes: 2 additions & 2 deletions fuzzers/grimoire/builder.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /rustup.sh && \
# Download libafl
RUN git clone https://github.com/AFLplusplus/libafl_fuzzbench /libafl_fuzzbench && \
cd /libafl_fuzzbench && \
git checkout 7c1b2aad1c458cca7ce50097e53db07ec7d7fdbe && \
git checkout b7fc9fd143daff0190fd623ed3a8b9fbc64cc00c && \
git submodule update --init

# Compile libafl
RUN cd /libafl_fuzzbench/ && unset CFLAGS && unset CXXFLAGS && \
export CC=clang && export CXX=clang++ && \
export LIBAFL_EDGES_MAP_SIZE=2621440 && \
PATH="/root/.cargo/bin:$PATH" cargo build --release
PATH="/root/.cargo/bin:$PATH" cargo build --release -p grimoire

RUN wget https://gist.githubusercontent.com/andreafioraldi/e5f60d68c98b31665a274207cfd05541/raw/4da351a321f1408df566a9cf2ce7cde6eeab3904/empty_fuzzer_lib.c -O /empty_fuzzer_lib.c && \
clang -c /empty_fuzzer_lib.c && \
Expand Down
4 changes: 2 additions & 2 deletions fuzzers/nautilus/builder.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /rustup.sh && \
# Download libafl
RUN git clone https://github.com/AFLplusplus/libafl_fuzzbench /libafl_fuzzbench && \
cd /libafl_fuzzbench && \
git checkout 7c1b2aad1c458cca7ce50097e53db07ec7d7fdbe && \
git checkout b7fc9fd143daff0190fd623ed3a8b9fbc64cc00c && \
git submodule update --init

# Compile libafl
RUN cd /libafl_fuzzbench/ && unset CFLAGS && unset CXXFLAGS && \
export CC=clang && export CXX=clang++ && \
export LIBAFL_EDGES_MAP_SIZE=2621440 && \
PATH="/root/.cargo/bin:$PATH" cargo build --release
PATH="/root/.cargo/bin:$PATH" cargo build --release -p nautilus

RUN wget https://gist.githubusercontent.com/andreafioraldi/e5f60d68c98b31665a274207cfd05541/raw/4da351a321f1408df566a9cf2ce7cde6eeab3904/empty_fuzzer_lib.c -O /empty_fuzzer_lib.c && \
clang -c /empty_fuzzer_lib.c && \
Expand Down
2 changes: 2 additions & 0 deletions fuzzers/nautilus/runner.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

FROM gcr.io/fuzzbench/base-image

RUN apt update && apt -y install libexpat1-dev zlib1g-dev

# This makes interactive docker runs painless:
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/out"
#ENV AFL_MAP_SIZE=2621440
Expand Down
4 changes: 2 additions & 2 deletions fuzzers/token_level/builder.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /rustup.sh && \
# Download libafl
RUN git clone https://github.com/AFLplusplus/libafl_fuzzbench /libafl_fuzzbench && \
cd /libafl_fuzzbench && \
git checkout 7c1b2aad1c458cca7ce50097e53db07ec7d7fdbe && \
git checkout b7fc9fd143daff0190fd623ed3a8b9fbc64cc00c && \
git submodule update --init

# Compile libafl
RUN cd /libafl_fuzzbench/ && unset CFLAGS && unset CXXFLAGS && \
export CC=clang && export CXX=clang++ && \
export LIBAFL_EDGES_MAP_SIZE=2621440 && \
PATH="/root/.cargo/bin:$PATH" cargo build --release
PATH="/root/.cargo/bin:$PATH" cargo build --release -p token_level

RUN wget https://gist.githubusercontent.com/andreafioraldi/e5f60d68c98b31665a274207cfd05541/raw/4da351a321f1408df566a9cf2ce7cde6eeab3904/empty_fuzzer_lib.c -O /empty_fuzzer_lib.c && \
clang -c /empty_fuzzer_lib.c && \
Expand Down
2 changes: 2 additions & 0 deletions fuzzers/token_level/runner.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

FROM gcr.io/fuzzbench/base-image

RUN apt update && apt -y install libexpat1-dev zlib1g-dev

# This makes interactive docker runs painless:
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/out"
#ENV AFL_MAP_SIZE=2621440
Expand Down

0 comments on commit b5027cf

Please sign in to comment.