diff --git a/.github/workflows/fuzz.yaml b/.github/workflows/fuzz.yaml index b644e9da4..2f0d98eb9 100644 --- a/.github/workflows/fuzz.yaml +++ b/.github/workflows/fuzz.yaml @@ -164,4 +164,4 @@ jobs: env: FUZZ_TIME: ${{ inputs.fuzz_time || '30s' }} run: | - go test -parallel=1 -timeout 0 -fuzz="${{ matrix.target.test }}" -fuzztime="${FUZZ_TIME}" "${{ matrix.target.package }}" + go test -parallel=1 -timeout 0 -fuzz="^${{ matrix.target.test }}$" -fuzztime="${FUZZ_TIME}" "${{ matrix.target.package }}" diff --git a/pkg/compile/fuzz_test.go b/pkg/compile/fuzz_test.go index 0805d9f4f..a19e29111 100644 --- a/pkg/compile/fuzz_test.go +++ b/pkg/compile/fuzz_test.go @@ -19,8 +19,8 @@ import ( // Go's 100MB fuzzer shared memory capacity and avoid OOM in parsers. const maxFuzzSize = 10 * 1024 * 1024 -// FuzzRemoveRules tests the removeRules function with random inputs. -func FuzzRemoveRules(f *testing.F) { +// FuzzRemoveRulesExact tests the removeRules function with random inputs. +func FuzzRemoveRulesExact(f *testing.F) { for _, root := range getAllRuleFS() { err := fs.WalkDir(root, ".", func(path string, d fs.DirEntry, err error) error { if err != nil || d.IsDir() {