Path: blob/main/crypto/krb5/src/tests/fuzzing/oss-fuzz.sh
34907 views
#!/bin/bash -eu12# This script plays the role of build.sh in OSS-Fuzz. If only minor3# changes are required such as changing the fuzzing targets, a PR in4# the OSS-Fuzz repository is not needed and they can be done here.56# Compile krb5 for oss-fuzz.7pushd src/8autoreconf9./configure CFLAGS="-fcommon $CFLAGS" CXXFLAGS="-fcommon $CXXFLAGS" \10--enable-static --disable-shared --enable-ossfuzz11make12popd1314# Copy fuzz targets and seed corpus to $OUT.15pushd src/tests/fuzzing1617fuzzers=("fuzz_aes" "fuzz_asn" "fuzz_attrset" "fuzz_chpw" "fuzz_crypto"18"fuzz_des" "fuzz_gss" "fuzz_json" "fuzz_kdc" "fuzz_krad" "fuzz_krb"19"fuzz_krb5_ticket" "fuzz_marshal_cred" "fuzz_marshal_princ"20"fuzz_ndr" "fuzz_oid" "fuzz_pac" "fuzz_profile" "fuzz_util")2122for fuzzer in "${fuzzers[@]}"; do23cp "$fuzzer" "$OUT/$fuzzer"24zip -r "${OUT}/${fuzzer}_seed_corpus.zip" "${fuzzer}_seed_corpus"25done2627popd282930