Skip to content

Commit 683710c

Browse files
test: let fuzz target surface unexpected exceptions
1 parent 39b2818 commit 683710c

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

‎fuzz/receipt_fuzzer.py‎

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,8 @@ def TestOneInput(data: bytes) -> None:
2121
if len(data) > 16384:
2222
data = data[:16384]
2323

24-
try:
25-
text = data.decode("utf-8", errors="ignore")
26-
pipelock_verify.verify(text)
27-
except (MemoryError, RecursionError):
28-
raise
29-
except Exception:
30-
# Malformed receipts, bad JSON, bad signatures, and unsupported shapes
31-
# are expected corpus cases. The fuzzer is looking for crashes.
32-
return
24+
text = data.decode("utf-8", errors="ignore")
25+
pipelock_verify.verify(text)
3326

3427

3528
def main() -> None:

0 commit comments

Comments
 (0)