Skip to content

Commit 544be5a

Browse files
authored
fix: avoid collisions between FuzzRemoveRules fuzzers (#1386)
Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
1 parent faa21d5 commit 544be5a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/fuzz.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,4 @@ jobs:
164164
env:
165165
FUZZ_TIME: ${{ inputs.fuzz_time || '30s' }}
166166
run: |
167-
go test -parallel=1 -timeout 0 -fuzz="${{ matrix.target.test }}" -fuzztime="${FUZZ_TIME}" "${{ matrix.target.package }}"
167+
go test -parallel=1 -timeout 0 -fuzz="^${{ matrix.target.test }}$" -fuzztime="${FUZZ_TIME}" "${{ matrix.target.package }}"

pkg/compile/fuzz_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import (
1919
// Go's 100MB fuzzer shared memory capacity and avoid OOM in parsers.
2020
const maxFuzzSize = 10 * 1024 * 1024
2121

22-
// FuzzRemoveRules tests the removeRules function with random inputs.
23-
func FuzzRemoveRules(f *testing.F) {
22+
// FuzzRemoveRulesExact tests the removeRules function with random inputs.
23+
func FuzzRemoveRulesExact(f *testing.F) {
2424
for _, root := range getAllRuleFS() {
2525
err := fs.WalkDir(root, ".", func(path string, d fs.DirEntry, err error) error {
2626
if err != nil || d.IsDir() {

0 commit comments

Comments
 (0)