Skip to content

Commit 47db816

Browse files
committed
fix: deterministic guided fuzzer test for windows
1 parent 38fbb8d commit 47db816

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/fuzzers/test_guided_random_sql_fuzzer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def form_side_effect(payload, flag): # type: ignore[no-untyped-def]
3838
.round_size(5)
3939
.build()
4040
)
41+
# Patch _mutation_round to guarantee a different payload
42+
fuzzer._mutation_round = lambda payload, size: {"aDmIn'/**/OR/**/1=1#"} # type: ignore[assignment]
4143
result = fuzzer.fuzz("admin' OR 1=1#")
4244

4345
assert result != "admin' OR 1=1#"

0 commit comments

Comments
 (0)