Skip to content

Commit 7db3ce2

Browse files
committed
Update fuzz target
This commit provides a few updates to the fuzz testing framework. * all recent changes to the service and interface are pulled in * the initial corpus for the fuzzer is removed and recreated at build time from Rust native operation objects * the fuzzer is restricted/focused on the TPM provider for now Signed-off-by: Ionut Mihalcea <ionut.mihalcea@arm.com>
1 parent 478e312 commit 7db3ce2

16 files changed

+769
-230
lines changed

fuzz.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ set -e
1010

1111
if [[ "$1" == "run" ]]
1212
then
13+
# Build Docker image
14+
docker build fuzz/docker -t parsec/fuzz
15+
1316
# Set up fuzz folder
1417
docker run --rm -v $(pwd):/parsec -w /parsec/fuzz --name $CLEANUP_CONTAINER_NAME parsec/fuzz ./cleanup.sh
1518
# A copy of the config file is used because the file is modified during the run
1619
cp fuzz/config.toml fuzz/run_config.toml
1720

18-
# Build Docker image
19-
docker build fuzz/docker -t parsec/fuzz
20-
2121
# Stop previous container and run fuzzer
2222
docker kill $FUZZ_CONTAINER_NAME || true
2323
sleep 5s

fuzz/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ artifacts
55
*.log
66
run_config.toml
77
NVChip
8+
init_corpus

0 commit comments

Comments
 (0)