Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use (recv/send)_bytes instead of recv/send #38

Merged
merged 1 commit into from Jun 9, 2020
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Use (recv/send)_butes instead of recv/send

This commit improves a bit the performances
in the same spirit as b91ad83
  • Loading branch information
jvoisin committed Mar 2, 2020
commit 80acd38e14ace64417400d45c68e1d06630b514c
@@ -46,7 +46,7 @@ def write(self, x):
child_conn.send(e)
break
else:
child_conn.send(tracer.get_coverage())
child_conn.send_bytes(b'%d' % tracer.get_coverage())


class Fuzzer(object):
@@ -135,8 +135,9 @@ def start(self):
self.write_sample(buf, prefix='timeout-')
break

total_coverage = parent_conn.recv()
if type(total_coverage) != int:
try:
total_coverage = int(parent_conn.recv_bytes())
except ValueError:
self.write_sample(buf)
break

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.