Skip to content

Commit 05beb54

Browse files
authored
Update LibAFL and test for regressions. (#1963)
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.
1 parent b6d7a9c commit 05beb54

File tree

6 files changed

+13
-161
lines changed

6 files changed

+13
-161
lines changed

fuzzers/libafl/builder.Dockerfile

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,25 @@ RUN apt-get update && \
2626
apt-get remove -y llvm-10 && \
2727
apt-get install -y \
2828
build-essential \
29-
llvm-11 \
30-
clang-12 \
31-
cargo && \
29+
lsb-release wget software-properties-common gnupg && \
3230
apt-get install -y wget libstdc++5 libtool-bin automake flex bison \
3331
libglib2.0-dev libpixman-1-dev python3-setuptools unzip \
3432
apt-utils apt-transport-https ca-certificates joe curl && \
35-
PATH="/root/.cargo/bin/:$PATH" cargo install cargo-make
33+
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && ./llvm.sh 17
34+
35+
RUN wget https://gist.githubusercontent.com/tokatoka/26f4ba95991c6e33139999976332aa8e/raw/698ac2087d58ce5c7a6ad59adce58dbfdc32bd46/createAliases.sh && chmod u+x ./createAliases.sh && ./createAliases.sh
36+
37+
# Uninstall old Rust & Install the latest one.
38+
RUN if which rustup; then rustup self uninstall -y; fi && \
39+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /rustup.sh && \
40+
sh /rustup.sh --default-toolchain nightly-2024-03-12 -y && \
41+
rm /rustup.sh
3642

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

4046
# Checkout a current commit
41-
RUN cd /libafl && git pull && git checkout b20fda2a4ada2a6462718dc661e139e6c7a29807 || true
47+
RUN cd /libafl && git pull && git checkout b4efb6151550a37f61a869acf2957a1b07894a93 || true
4248
# Note that due a nightly bug it is currently fixed to a known version on top!
4349

4450
# Compile libafl.

fuzzers/libafl/fuzzer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ def build(): # pylint: disable=too-many-branches,too-many-statements
4949
os.environ['UBSAN_OPTIONS'] = 'abort_on_error=0'
5050

5151
cflags = ['--libafl']
52+
cxxflags = ['--libafl', '--std=c++14']
5253
utils.append_flags('CFLAGS', cflags)
53-
utils.append_flags('CXXFLAGS', cflags)
54+
utils.append_flags('CXXFLAGS', cxxflags)
5455
utils.append_flags('LDFLAGS', cflags)
5556

5657
os.environ['FUZZER_LIB'] = '/stub_rt.a'

fuzzers/libafl_27042023/builder.Dockerfile

Lines changed: 0 additions & 54 deletions
This file was deleted.

fuzzers/libafl_27042023/description.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

fuzzers/libafl_27042023/fuzzer.py

Lines changed: 0 additions & 67 deletions
This file was deleted.

fuzzers/libafl_27042023/runner.Dockerfile

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)