VirtualBox

source: vbox/trunk/src/libs/libtpms-0.10.0/tests/oss-fuzz.sh

Last change on this file was 108932, checked in by vboxsync, 5 weeks ago

libtpms-0.10.0: Applied and adjusted our libtpms changes to 0.9.6. jiraref:VBP-1320

  • Property svn:executable set to *
File size: 632 bytes
Line 
1#!/bin/bash
2
3set -ex
4
5export CC=${CC:-clang}
6export CXX=${CXX:-clang++}
7export WORK=${WORK:-$(pwd)}
8export OUT=${OUT:-$(pwd)/out}
9CFLAGS="${CFLAGS} -fno-sanitize=bounds" # due to casts to Crypt_Int*
10
11mkdir -p $OUT
12
13build=$WORK/build
14rm -rf $build
15mkdir -p $build
16
17export LIBTPMS=$(pwd)
18autoreconf -vfi
19
20cd $build
21$LIBTPMS/configure --disable-shared --enable-static --with-openssl --with-tpm2
22make -j$(nproc) && make -C tests fuzz
23
24zip -jqr $OUT/fuzz_seed_corpus.zip "$LIBTPMS/tests/corpus-execute-command"
25
26find $build -type f -executable -name "fuzz*" -exec mv {} $OUT \;
27find $build -type f -name "*.options" -exec mv {} $OUT \;
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette