|
1 | | -FROM ubuntu:20.04 |
| 1 | +FROM ubuntu:22.04 |
2 | 2 |
|
| 3 | +ENV DEBIAN_FRONTEND=noninteractive |
3 | 4 | RUN apt-get update && \ |
4 | | - apt-get -y upgrade |
5 | | -ENV DEBIAN_FRONTEND noninteractive |
6 | | -RUN apt-get install -y -q git build-essential wget zlib1g-dev cmake python3 python3-pip ninja-build ccache && \ |
| 5 | + apt-get -y upgrade && \ |
| 6 | + apt-get install -y -q git build-essential wget zlib1g-dev cmake python3 python3-pip ninja-build ccache && \ |
7 | 7 | apt-get clean |
8 | 8 |
|
9 | 9 | ENV FUZZING_HOME=/IRFuzzer |
10 | | - |
11 | | -RUN mkdir -p /$FUZZING_HOME |
12 | | -COPY . /$FUZZING_HOME |
13 | | -WORKDIR /$FUZZING_HOME |
| 10 | +WORKDIR $FUZZING_HOME |
| 11 | +COPY . $FUZZING_HOME |
14 | 12 |
|
15 | 13 | ENV LLVM=llvm-project |
16 | 14 | ENV AFL=AFLplusplus |
17 | 15 | ENV PATH="${PATH}:/clang+llvm/bin" |
18 | 16 | ENV AFL_LLVM_INSTRUMENT=CLASSIC |
19 | 17 |
|
20 | 18 | RUN CLANG_LLVM=clang+llvm-14.0.0-x86_64-linux-gnu-ubuntu-18.04 && \ |
21 | | - wget https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.0/$CLANG_LLVM.tar.xz && \ |
| 19 | + wget --no-verbose --show-progress --progress=dot:mega https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.0/$CLANG_LLVM.tar.xz && \ |
22 | 20 | tar -xvf $CLANG_LLVM.tar.xz -C / && \ |
23 | 21 | mv /$CLANG_LLVM /clang+llvm && \ |
24 | 22 | rm $CLANG_LLVM.tar.xz |
25 | 23 |
|
26 | | -RUN git clone https://github.com/SecurityLab-UCD/AFLplusplus.git --branch=isel --depth=1 $FUZZING_HOME/$AFL && \ |
27 | | - cd $FUZZING_HOME/$AFL && \ |
| 24 | +RUN git clone https://github.com/SecurityLab-UCD/AFLplusplus.git --branch=isel --depth=1 $AFL && \ |
| 25 | + cd $AFL && \ |
28 | 26 | make -j |
29 | 27 |
|
30 | | -RUN git clone --branch irfuzzer-0.1 https://github.com/SecurityLab-UCD/llvm-project.git --depth=1 $FUZZING_HOME/$LLVM |
| 28 | +RUN git clone --branch irfuzzer-0.1 https://github.com/SecurityLab-UCD/llvm-project.git --depth=1 $LLVM |
31 | 29 |
|
32 | 30 | RUN mkdir -p $LLVM/build-afl && \ |
33 | 31 | cd $LLVM/build-afl && \ |
@@ -75,8 +73,3 @@ RUN mkdir -p mutator/build && \ |
75 | 73 | cd mutator/build && \ |
76 | 74 | cmake -GNinja .. && \ |
77 | 75 | ninja -j $(nproc --all) |
78 | | - |
79 | | -# Tell AFL++ to only use our mutator |
80 | | -ENV AFL_CUSTOM_MUTATOR_ONLY=1 |
81 | | -# Tell AFL++ Where our mutator is |
82 | | -ENV AFL_CUSTOM_MUTATOR_LIBRARY=$FUZZING_HOME/mutator/build/libAFLCustomIRMutator.so |
0 commit comments