Skip to content

Commit 69bd4e7

Browse files
authored
Merge pull request #2648 from AdamKorcz/oss-fuzz-build-script
Add OSS-Fuzz build script
2 parents ce052a6 + a4ace9e commit 69bd4e7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

hack/oss-fuzz-build.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash -eu
2+
# This script is used by OSS-Fuzz to build and run Limas fuzz tests continuously.
3+
# Limas OSS-Fuzz integration can be found here: https://github.com/google/oss-fuzz/tree/master/projects/lima
4+
# Modify https://github.com/google/oss-fuzz/blob/master/projects/lima/project.yaml for access management to Limas OSS-Fuzz crashes.
5+
printf "package store\nimport _ \"github.com/AdamKorcz/go-118-fuzz-build/testing\"\n" >"$SRC"/lima/pkg/store/register.go
6+
go mod tidy
7+
compile_native_go_fuzzer github.com/lima-vm/lima/pkg/store FuzzLoadYAMLByFilePath FuzzLoadYAMLByFilePath
8+
compile_native_go_fuzzer github.com/lima-vm/lima/pkg/store FuzzInspect FuzzInspect
9+
compile_native_go_fuzzer github.com/lima-vm/lima/pkg/nativeimgutil FuzzConvertToRaw FuzzConvertToRaw
10+
compile_native_go_fuzzer github.com/lima-vm/lima/pkg/cidata FuzzSetupEnv FuzzSetupEnv
11+
compile_native_go_fuzzer github.com/lima-vm/lima/pkg/iso9660util FuzzIsISO9660 FuzzIsISO9660
12+
compile_native_go_fuzzer github.com/lima-vm/lima/pkg/guestagent/procnettcp FuzzParse FuzzParse
13+
compile_native_go_fuzzer github.com/lima-vm/lima/pkg/yqutil FuzzEvaluateExpression FuzzEvaluateExpression
14+
compile_native_go_fuzzer github.com/lima-vm/lima/pkg/downloader FuzzDownload FuzzDownload

0 commit comments

Comments
 (0)