Skip to content

Commit

Permalink
Update LibAFL and test for regressions. (google#1963)
Browse files Browse the repository at this point in the history
We are soon to release libafl 0.12
before doing so we want to do a fuzzbench run since this update includes
lots of changes to the core part of LibAFL.

each of libafl_pre012_0, libafl_pre012_1, libafl_012_2, libafl_pre012_3,
is using the commit right after some changes.
  • Loading branch information
tokatoka authored Apr 12, 2024
1 parent b6d7a9c commit 05beb54
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 161 deletions.
16 changes: 11 additions & 5 deletions fuzzers/libafl/builder.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,25 @@ RUN apt-get update && \
apt-get remove -y llvm-10 && \
apt-get install -y \
build-essential \
llvm-11 \
clang-12 \
cargo && \
lsb-release wget software-properties-common gnupg && \
apt-get install -y wget libstdc++5 libtool-bin automake flex bison \
libglib2.0-dev libpixman-1-dev python3-setuptools unzip \
apt-utils apt-transport-https ca-certificates joe curl && \
PATH="/root/.cargo/bin/:$PATH" cargo install cargo-make
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && ./llvm.sh 17

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 b20fda2a4ada2a6462718dc661e139e6c7a29807 || true
RUN cd /libafl && git pull && git checkout b4efb6151550a37f61a869acf2957a1b07894a93 || true
# Note that due a nightly bug it is currently fixed to a known version on top!

# Compile libafl.
Expand Down
3 changes: 2 additions & 1 deletion fuzzers/libafl/fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ def build(): # pylint: disable=too-many-branches,too-many-statements
os.environ['UBSAN_OPTIONS'] = 'abort_on_error=0'

cflags = ['--libafl']
cxxflags = ['--libafl', '--std=c++14']
utils.append_flags('CFLAGS', cflags)
utils.append_flags('CXXFLAGS', cflags)
utils.append_flags('CXXFLAGS', cxxflags)
utils.append_flags('LDFLAGS', cflags)

os.environ['FUZZER_LIB'] = '/stub_rt.a'
Expand Down
54 changes: 0 additions & 54 deletions fuzzers/libafl_27042023/builder.Dockerfile

This file was deleted.

11 changes: 0 additions & 11 deletions fuzzers/libafl_27042023/description.md

This file was deleted.

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

This file was deleted.

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

This file was deleted.

0 comments on commit 05beb54

Please sign in to comment.