Skip to content
Closed
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
56 changes: 0 additions & 56 deletions fuzzers/aflrustrust/builder.Dockerfile

This file was deleted.

13 changes: 0 additions & 13 deletions fuzzers/aflrustrust/description.md

This file was deleted.

67 changes: 0 additions & 67 deletions fuzzers/aflrustrust/fuzzer.py

This file was deleted.

23 changes: 0 additions & 23 deletions fuzzers/aflrustrust/runner.Dockerfile

This file was deleted.

14 changes: 4 additions & 10 deletions fuzzers/libafl/builder.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ FROM $parent_image
# Uninstall old Rust & Install the latest one.
RUN if which rustup; then rustup self uninstall -y; fi && \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /rustup.sh && \
sh /rustup.sh --default-toolchain nightly-2023-09-21 -y && \
sh /rustup.sh --default-toolchain nightly-2024-08-12 -y && \
rm /rustup.sh

# Install dependencies.
Expand All @@ -34,27 +34,21 @@ RUN apt-get update && \

RUN wget https://gist.githubusercontent.com/tokatoka/26f4ba95991c6e33139999976332aa8e/raw/698ac2087d58ce5c7a6ad59adce58dbfdc32bd46/createAliases.sh && chmod u+x ./createAliases.sh && ./createAliases.sh

# Uninstall old Rust & Install the latest one.
RUN if which rustup; then rustup self uninstall -y; fi && \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /rustup.sh && \
sh /rustup.sh --default-toolchain nightly-2024-03-12 -y && \
rm /rustup.sh

# Download libafl.
RUN git clone https://github.com/AFLplusplus/LibAFL /libafl

# Checkout a current commit
RUN cd /libafl && git pull && git checkout b4efb6151550a37f61a869acf2957a1b07894a93 || true
RUN cd /libafl && git pull && git checkout 799c634fef047d3e98355fe1ad17c5226c901a57 || true
# Note that due a nightly bug it is currently fixed to a known version on top!

# Compile libafl.
RUN cd /libafl && \
unset CFLAGS CXXFLAGS && \
export LIBAFL_EDGES_MAP_SIZE=2621440 && \
cd ./fuzzers/fuzzbench && \
cd ./fuzzers/fuzzbench/fuzzbench && \
PATH="/root/.cargo/bin/:$PATH" cargo build --profile release-fuzzbench --features no_link_main

# Auxiliary weak references.
RUN cd /libafl/fuzzers/fuzzbench && \
RUN cd /libafl/fuzzers/fuzzbench/fuzzbench && \
clang -c stub_rt.c && \
ar r /stub_rt.a stub_rt.o
8 changes: 4 additions & 4 deletions fuzzers/libafl/fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ def prepare_fuzz_environment(input_corpus):

def build(): # pylint: disable=too-many-branches,too-many-statements
"""Build benchmark."""
os.environ[
'CC'] = '/libafl/fuzzers/fuzzbench/target/release-fuzzbench/libafl_cc'
os.environ[
'CXX'] = '/libafl/fuzzers/fuzzbench/target/release-fuzzbench/libafl_cxx'
os.environ['CC'] = ('/libafl/fuzzers/fuzzbench/fuzzbench'
'/target/release-fuzzbench/libafl_cc')
os.environ['CXX'] = ('/libafl/fuzzers/fuzzbench/fuzzbench'
'/target/release-fuzzbench/libafl_cxx')

os.environ['ASAN_OPTIONS'] = 'abort_on_error=0:allocator_may_return_null=1'
os.environ['UBSAN_OPTIONS'] = 'abort_on_error=0'
Expand Down
6 changes: 3 additions & 3 deletions fuzzers/libafl_libfuzzer/builder.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ RUN apt-get update && \
# Uninstall old Rust & Install the latest one.
RUN if which rustup; then rustup self uninstall -y; fi && \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /rustup.sh && \
sh /rustup.sh --default-toolchain nightly-2023-08-23 -y && \
sh /rustup.sh --default-toolchain nightly-2024-08-12 -y && \
rm /rustup.sh

# Download libafl.
RUN git clone https://github.com/AFLplusplus/libafl /libafl && \
cd /libafl && \
git checkout defe9084aed5a80ac32fe9a1f3ff00baf97738c6 && \
git checkout 799c634fef047d3e98355fe1ad17c5226c901a57 && \
unset CFLAGS CXXFLAGS && \
export LIBAFL_EDGES_MAP_SIZE=2621440 && \
cd ./libafl_libfuzzer/libafl_libfuzzer_runtime && \
cd ./libafl_libfuzzer_runtime && \
env -i CXX=$CXX CC=$CC PATH="/root/.cargo/bin/:$PATH" cargo build --profile release-fuzzbench && \
cp ./target/release-fuzzbench/libafl_libfuzzer_runtime.a /usr/lib/libFuzzer.a
6 changes: 3 additions & 3 deletions fuzzers/libafl_text/builder.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ FROM $parent_image
# Uninstall old Rust & Install the latest one.
RUN if which rustup; then rustup self uninstall -y; fi && \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /rustup.sh && \
sh /rustup.sh --default-toolchain nightly -y && \
sh /rustup.sh --default-toolchain nightly-2024-08-12 -y && \
rm /rustup.sh

# Install dependencies.
Expand All @@ -39,14 +39,14 @@ RUN git clone \
--branch vhtokens \
https://github.com/AFLplusplus/libafl /libafl && \
cd /libafl && \
git checkout 6c7f6566b0c8b3b82352c052a0672f46a2f7d1e9 || \
git checkout 799c634fef047d3e98355fe1ad17c5226c901a57 || \
true

# Compile libafl.
RUN cd /libafl && \
unset CFLAGS CXXFLAGS && \
export LIBAFL_EDGES_MAP_SIZE=2621440 && \
cd ./fuzzers/fuzzbench_text && \
cd ./fuzzers/fuzzbench/fuzzbench_text && \
PATH="/root/.cargo/bin/:$PATH" cargo build --release

# Auxiliary weak references.
Expand Down
5 changes: 3 additions & 2 deletions fuzzers/libafl_text/fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ def prepare_fuzz_environment(input_corpus):

def build(): # pylint: disable=too-many-branches,too-many-statements
"""Build benchmark."""
os.environ['CC'] = '/libafl/fuzzers/fuzzbench_text/target/release/libafl_cc'
os.environ[
'CXX'] = '/libafl/fuzzers/fuzzbench_text/target/release/libafl_cxx'
'CC'] = '/libafl/fuzzers/fuzzbench/fuzzbench_text/target/release/libafl_cc'
os.environ[
'CXX'] = '/libafl/fuzzers/fuzzbench/fuzzbench_text/target/release/libafl_cxx'

os.environ['ASAN_OPTIONS'] = 'abort_on_error=0:allocator_may_return_null=1'
os.environ['UBSAN_OPTIONS'] = 'abort_on_error=0'
Expand Down