Skip to content

Commit 5c5a2d3

Browse files
committed
fix: specify exception types for validation errors in TestOneInput
Signed-off-by: Ntege Daniel <danientege785@gmail.com>
1 parent 53388d7 commit 5c5a2d3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.clusterfuzzlite/contract_params_fuzzer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ def TestOneInput(data: bytes) -> None:
4444
count = fdp.ConsumeIntInRange(0, 8)
4545
params.add_bytes32_array([fdp.ConsumeBytes(32) for _ in range(count)])
4646
params.to_bytes()
47-
except Exception:
47+
except (TypeError, ValueError):
48+
# Expected validation errors from malformed input
4849
pass
4950

5051

0 commit comments

Comments
 (0)