mirror of https://github.com/google/oss-fuzz.git
Fix project OpenSK (#6146)
Code coverage was disabled, making the overall workflow failing. Also adds all the fuzzing targets the project provides.
This commit is contained in:
parent
290344bc6a
commit
523c214b5a
|
@ -16,7 +16,7 @@
|
||||||
FROM gcr.io/oss-fuzz-base/base-builder
|
FROM gcr.io/oss-fuzz-base/base-builder
|
||||||
RUN apt-get update && apt-get install -y make autoconf automake libtool curl cmake python llvm-dev libclang-dev clang uuid-runtime
|
RUN apt-get update && apt-get install -y make autoconf automake libtool curl cmake python llvm-dev libclang-dev clang uuid-runtime
|
||||||
|
|
||||||
RUN git clone --recurse-submodules https://github.com/google/OpenSK && \
|
RUN git clone --depth 1 https://github.com/google/OpenSK && \
|
||||||
cd OpenSK && \
|
cd OpenSK && \
|
||||||
./setup.sh && \
|
./setup.sh && \
|
||||||
./fuzzing_setup.sh
|
./fuzzing_setup.sh
|
||||||
|
|
|
@ -14,19 +14,27 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
if [ "$SANITIZER" = "coverage" ]
|
|
||||||
then
|
FUZZ_TARGET_OUTPUT_DIR=fuzz/target/x86_64-unknown-linux-gnu/release
|
||||||
exit 0
|
|
||||||
fi
|
build_and_copy() {
|
||||||
|
pushd "$1"
|
||||||
|
cargo +nightly fuzz build --release --debug-assertions
|
||||||
|
for f in fuzz/fuzz_targets/*.rs
|
||||||
|
do
|
||||||
|
cp ${FUZZ_TARGET_OUTPUT_DIR}/$(basename ${f%.*}) $OUT/
|
||||||
|
done
|
||||||
|
popd
|
||||||
|
}
|
||||||
|
|
||||||
cd OpenSK
|
cd OpenSK
|
||||||
cargo fuzz build
|
|
||||||
|
|
||||||
# Copy fuzzers to out
|
# Main OpenSK fuzzing targets
|
||||||
cp ./fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_process_ctap1 $OUT/
|
build_and_copy "."
|
||||||
cp ./fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_process_ctap2_client_pin $OUT/
|
|
||||||
cp ./fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_process_ctap2_get_assertion $OUT/
|
# persistent storage library
|
||||||
cp ./fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_process_ctap2_make_credential $OUT/
|
build_and_copy libraries/persistent_store
|
||||||
cp ./fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_process_ctap_command $OUT/
|
|
||||||
cp ./fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_split_assemble $OUT/
|
# CBOR crate
|
||||||
cp ./fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_process_ctap1 $OUT/
|
build_and_copy libraries/cbor
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue