Skip to content

Commit e915adb

Browse files
addisoncrumpArdi Madadi
authored andcommitted
Update libafl-based fuzzers (from AFL++ fork) (google#2027)
Changing forks so @tokatoka can collab with me on this. Supercedes As requested in google#2020.
1 parent bc2d370 commit e915adb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fuzzers/libafl/builder.Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ FROM $parent_image
1919
RUN if which rustup; then rustup self uninstall -y; fi && \
2020
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /rustup.sh && \
2121
sh /rustup.sh --default-toolchain nightly-2024-08-12 -y && \
22+
sh /rustup.sh --default-toolchain nightly-2024-08-12 -y && \
2223
rm /rustup.sh
2324

2425
# Install dependencies.
@@ -38,17 +39,19 @@ RUN wget https://gist.githubusercontent.com/tokatoka/26f4ba95991c6e3313999997633
3839
RUN git clone https://github.com/AFLplusplus/LibAFL /libafl
3940

4041
# Checkout a current commit
41-
RUN cd /libafl && git pull && git checkout f856092f3d393056b010fcae3b086769377cba18 || true
42+
RUN cd /libafl && git pull && git checkout f3433767bea0cc3d7ee3b4c08be138e61d20c468 || true
4243
# Note that due a nightly bug it is currently fixed to a known version on top!
4344

4445
# Compile libafl.
4546
RUN cd /libafl && \
4647
unset CFLAGS CXXFLAGS && \
4748
export LIBAFL_EDGES_MAP_SIZE=2621440 && \
4849
cd ./fuzzers/fuzzbench/fuzzbench && \
50+
cd ./fuzzers/fuzzbench/fuzzbench && \
4951
PATH="/root/.cargo/bin/:$PATH" cargo build --profile release-fuzzbench --features no_link_main
5052

5153
# Auxiliary weak references.
54+
RUN cd /libafl/fuzzers/fuzzbench/fuzzbench && \
5255
RUN cd /libafl/fuzzers/fuzzbench/fuzzbench && \
5356
clang -c stub_rt.c && \
5457
ar r /stub_rt.a stub_rt.o

0 commit comments

Comments
 (0)