Skip to content

Commit

Permalink
[docker] Update AFL++ to v4.30c
Browse files Browse the repository at this point in the history
  • Loading branch information
apach301 committed Dec 13, 2024
1 parent 36029ff commit b57ea11
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion docker/ubuntu20.04-aarch64-sydr-fuzz/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,11 @@ RUN git clone --depth=1 https://github.com/vanhauser-thc/afl-cov /afl-cov && cd

ENV LLVM_CONFIG=llvm-config-14
ENV AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1
ENV AFL_SYNC_TIME=1
ENV IS_DOCKER="1"

RUN git clone https://github.com/AFLplusplus/AFLplusplus.git && cd AFLplusplus && \
git checkout v4.21c && export CC=clang-14 && export CXX=clang++-14 && \
git checkout v4.30c && export CC=clang-14 && export CXX=clang++-14 && \
export LD_LIBRARY_PATH="$(llvm-config-14 --libdir)${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" && make clean && \
PERFORMANCE=1 make distrib -j $(nproc) && make install -j $(nproc) && make clean && cd .. && rm -rf AFLplusplus

Expand Down
6 changes: 3 additions & 3 deletions docker/ubuntu20.04-riscv64-sydr-fuzz/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,9 @@ RUN wget -q https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-15.0.
-DLLVM_INCLUDE_TESTS="OFF" \
-DLLVM_LINK_LLVM_DYLIB="ON" \
-GNinja ../llvm/
RUN cat //llvm-project-llvmorg-15.0.7/compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake
RUN cd /llvm-project-llvmorg-15.0.7/build && \
CMAKE_BUILD_PARALLEL_LEVEL=$(nproc) cmake --build . && \
cmake --install . && cd ../.. && rm -rf llvm-project
cmake --install . && cd ../.. && rm -rf llvm-project*

# Install Go
RUN wget https://go.dev/dl/go1.23.3.linux-riscv64.tar.gz && \
Expand Down Expand Up @@ -90,10 +89,11 @@ RUN git clone --depth=1 https://github.com/vanhauser-thc/afl-cov /afl-cov && cd

ENV LLVM_CONFIG=llvm-config
ENV AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1
ENV AFL_SYNC_TIME=1
ENV IS_DOCKER="1"

RUN git clone https://github.com/AFLplusplus/AFLplusplus.git && cd AFLplusplus && \
git checkout v4.21c && export CC=clang && export CXX=clang++ && \
git checkout v4.30c && export CC=clang && export CXX=clang++ && \
export LD_LIBRARY_PATH="$(llvm-config --libdir)${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" && make clean && \
PERFORMANCE=1 make distrib -j $(nproc) && make install -j $(nproc) && make clean && cd .. && rm -rf AFLplusplus

Expand Down
3 changes: 2 additions & 1 deletion docker/ubuntu20.04-sydr-fuzz/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ RUN git clone --depth=1 https://github.com/vanhauser-thc/afl-cov /afl-cov && cd

ENV LLVM_CONFIG=llvm-config
ENV AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1
ENV AFL_SYNC_TIME=1
ENV IS_DOCKER="1"
ENV PATH=$PATH:/fuzz/sydr

Expand Down Expand Up @@ -146,7 +147,7 @@ ADD https://raw.githubusercontent.com/ispras/oss-sydr-fuzz/master/projects/jsonc

# Install AFLplusplus
RUN git clone https://github.com/AFLplusplus/AFLplusplus.git && cd AFLplusplus && \
git checkout v4.21c && export CC=clang && export CXX=clang++ && \
git checkout v4.30c && export CC=clang && export CXX=clang++ && \
export LD_LIBRARY_PATH="$(llvm-config --libdir)${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" && make clean && \
PERFORMANCE=1 make distrib -j $(nproc) && make install -j $(nproc) && make clean && cd .. && rm -rf AFLplusplus

Expand Down

0 comments on commit b57ea11

Please sign in to comment.