Skip to content

Commit adf4bf0

Browse files
authored
Merge pull request #1915 from DaveLak/fix-blockers-in-fuzz-diff
Instrument test utility functions to increase fuzzer efficiency
2 parents 4e212c6 + 315a2fd commit adf4bf0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎fuzzing/fuzz-targets/fuzz_diff.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,19 @@
1717
classBytesProcessAdapter:
1818
"""Allows bytes to be used as process objects returned by subprocess.Popen."""
1919

20+
@atheris.instrument_func
2021
def__init__(self, input_string):
2122
self.stdout=io.BytesIO(input_string)
2223
self.stderr=io.BytesIO()
2324

25+
@atheris.instrument_func
2426
defwait(self):
2527
return0
2628

2729
poll=wait
2830

2931

32+
@atheris.instrument_func
3033
defTestOneInput(data):
3134
fdp=atheris.FuzzedDataProvider(data)
3235

0 commit comments

Comments
(0)