[wasmtime] Try fixing delivery of SIGILL/SIGSEGV to JIT (#3335)

This is an attempt to apply the suggestions from #3316 to the fuzzing
infrastructure for the `wasmtime` target. This will hopefully allow the
delivery of SIGSEGV and SIGILL signals to the `wasmtime` program itself.
These are expected signals when executing wasm code so we don't want the
fuzzer to treat all forms of the signal as a fatal error.
This commit is contained in:
Alex Crichton 2020-02-05 11:46:23 -06:00 committed by GitHub
parent c57465770a
commit 94d0c3a7b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View File

@ -28,4 +28,4 @@ RUN git submodule update --init --recursive
RUN git clone --depth 1 https://github.com/bytecodealliance/wasmtime-libfuzzer-corpus wasmtime-libfuzzer-corpus
COPY build.sh $SRC/
COPY build.sh default.options $SRC/

View File

@ -37,4 +37,5 @@ do
FUZZ_TARGET_NAME=$(basename ${f%.*})
cp $FUZZ_TARGET_OUTPUT_DIR/$FUZZ_TARGET_NAME $OUT/
zip -jr $OUT/${FUZZ_TARGET_NAME}_seed_corpus.zip $PROJECT_DIR/wasmtime-libfuzzer-corpus/$FUZZ_TARGET_NAME/
cp $SRC/default.options $OUT/$FUZZ_TARGET_NAME.options
done

View File

@ -0,0 +1,3 @@
[asan]
allow_user_segv_handler=0
handle_sigill=1