mirror of https://github.com/google/oss-fuzz.git
[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:
parent
c57465770a
commit
94d0c3a7b4
|
@ -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
|
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/
|
||||||
|
|
|
@ -37,4 +37,5 @@ do
|
||||||
FUZZ_TARGET_NAME=$(basename ${f%.*})
|
FUZZ_TARGET_NAME=$(basename ${f%.*})
|
||||||
cp $FUZZ_TARGET_OUTPUT_DIR/$FUZZ_TARGET_NAME $OUT/
|
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/
|
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
|
done
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
[asan]
|
||||||
|
allow_user_segv_handler=0
|
||||||
|
handle_sigill=1
|
Loading…
Reference in New Issue