googleprojectzero / SockFuzzer

Other
356 stars 47 forks source link

Can’t run the Docker container #15

Open maxiwee69 opened 10 months ago

maxiwee69 commented 10 months ago

When I try to run the container(using the command seen below) I get the following error


maxi@localhost:~/SockFuzzer$ sudo docker run -e FUZZING_LANGUAGE="C" builder

---------------------------------------------------------------
Compiling libFuzzer to /usr/lib/libFuzzingEngine.a...  done.
---------------------------------------------------------------
CC=clang
CXX=clang++
CFLAGS=-O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fsanitize=address -fsanitize-address-use-after-scope -fsanitize=fuzzer-no-link
CXXFLAGS=-O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fsanitize=address -fsanitize-address-use-after-scope -fsanitize=fuzzer-no-link -stdlib=libc++
RUSTFLAGS=--cfg fuzzing -Zsanitizer=address -Cdebuginfo=1 -Cforce-frame-pointers
---------------------------------------------------------------
++ dirname /src/build.sh
+ LIBFUZZER_SRC_DIR=/src
+ CXX=clang++
+ for f in $LIBFUZZER_SRC_DIR/*.cpp
+ wait
+ clang++ -g -O2 -fno-omit-frame-pointer -std=c++11 '/src/*.cpp' -c
clang-15: error: no such file or directory: '/src/*.cpp'
clang-15: error: no input files
+ rm -f libFuzzer.a
+ ar ru libFuzzer.a 'Fuzzer*.o'
ar: `u' modifier ignored since `D' is the default (see `U')
ar: creating libFuzzer.a
ar: Fuzzer*.o: No such file or directory
maxi@localhost:~/SockFuzzer$

when I try to run it without this -e flag in the docker command I get

maxi@localhost:~/SockFuzzer$ sudo docker run builder
---------------------------------------------------------------
/usr/local/bin/compile: line 27: FUZZING_LANGUAGE: unbound variable
maxi@localhost:~/SockFuzzer