Skip to content

Commit

Permalink
Revert all similar lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DonggeLiu committed Jan 9, 2023
1 parent 94cc54c commit e98c11a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 13 deletions.
4 changes: 2 additions & 2 deletions fuzzers/eclipser/fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ def eclipser(input_corpus, output_corpus, target_binary):
if os.listdir(input_corpus): # Specify inputs only if any seed exists.
command += ['-i', input_corpus]
print('[eclipser] Run Eclipser with command: ' + ' '.join(command))
with subprocess.Popen(command):
pass
# pylint: disable=consider-using-with
subprocess.Popen(command)


def afl_worker(input_corpus, output_corpus, target_binary):
Expand Down
4 changes: 2 additions & 2 deletions fuzzers/eclipser_aflplusplus/fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ def eclipser(input_corpus, output_corpus, target_binary):
if os.listdir(input_corpus): # Specify inputs only if any seed exists.
command += ['-i', input_corpus]
print('[eclipser] Run Eclipser with command: ' + ' '.join(command))
with subprocess.Popen(command):
pass
# pylint: disable=consider-using-with
subprocess.Popen(command)


def afl_worker(input_corpus, output_corpus, target_binary):
Expand Down
4 changes: 2 additions & 2 deletions fuzzers/fuzzolic_aflplusplus_fuzzy/fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def fuzzolic(input_corpus, output_corpus, target_binary):
target_binary,
]
print('[fuzzolic] Running Fuzzolic with command: ' + ' '.join(command))
with subprocess.Popen(command):
pass
# pylint: disable=consider-using-with
subprocess.Popen(command)


def afl_worker(input_corpus, output_corpus, target_binary):
Expand Down
4 changes: 2 additions & 2 deletions fuzzers/fuzzolic_aflplusplus_z3/fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ def fuzzolic(input_corpus, output_corpus, target_binary):
target_binary,
]
print('[fuzzolic] Running Fuzzolic with command: ' + ' '.join(command))
with subprocess.Popen(command):
pass
# pylint: disable=consider-using-with
subprocess.Popen(command)


def afl_worker(input_corpus, output_corpus, target_binary):
Expand Down
12 changes: 7 additions & 5 deletions fuzzers/neuzz/fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ def run_neuzz(input_corpus,
'python2', './nn.py', '--output-folder', afl_output_dir, target_binary
]
print('[run_neuzz] Running command: ' + ' '.join(command))
with subprocess.Popen(command, stdout=output_stream, stderr=output_stream):
pass
# pylint: disable=consider-using-with
subprocess.Popen(command, stdout=output_stream, stderr=output_stream)
time.sleep(40)
target_rel_path = os.path.relpath(target_binary, os.getcwd())
# Spinning up neuzz
Expand All @@ -101,9 +101,11 @@ def run_neuzz(input_corpus,
target_rel_path, '@@'
]
print('[run_neuzz] Running command: ' + ' '.join(command))
with subprocess.Popen(command, stdout=output_stream,
stderr=output_stream) as neuzz_proc:
neuzz_proc.wait()
# pylint: disable=consider-using-with
neuzz_proc = subprocess.Popen(command,
stdout=output_stream,
stderr=output_stream)
neuzz_proc.wait()


def fuzz(input_corpus, output_corpus, target_binary):
Expand Down

0 comments on commit e98c11a

Please sign in to comment.