/
githubmirror
/
libtpms
Обзор
Документация
Войти
/
githubmirror
/
libtpms
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/oss-fuzz.sh
27 строк
632 B
Stefan Berger
tests: oss-fuzz.sh: Append -fno-sanitize=bounds to CFLAGS
15 янв 2024, 22:53
15 янв 2024, 22:53
23ab02a
Код
Авторство
О чём код?
#!/bin/bash set -ex export CC=${CC:-clang} export CXX=${CXX:-clang++} export WORK=${WORK:-$(pwd)} export OUT=${OUT:-$(pwd)/out} CFLAGS="${CFLAGS} -fno-sanitize=bounds" # due to casts to Crypt_Int* mkdir -p $OUT build=$WORK/build rm -rf $build mkdir -p $build export LIBTPMS=$(pwd) autoreconf -vfi cd $build $LIBTPMS/configure --disable-shared --enable-static --with-openssl --with-tpm2 make -j$(nproc) && make -C tests fuzz zip -jqr $OUT/fuzz_seed_corpus.zip "$LIBTPMS/tests/corpus-execute-command" find $build -type f -executable -name "fuzz*" -exec mv {} $OUT \; find $build -type f -name "*.options" -exec mv {} $OUT \;