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

worker: fix mmh3.hash64 argument by converting to bytes #83

Merged
merged 1 commit into from
Feb 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kafl_fuzzer/worker/execution_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def hash(self, pre_lut=False):
assert not pre_lut, "Request pre-LUT hash but LUT has been applied already."
else:
self.apply_lut()
return "%016x" % mmh3.hash64(self.cbuffer, seed=0xaaaaaaaa, x64arch=True, signed=False)[0]
return "%016x" % mmh3.hash64(bytes(self.cbuffer), seed=0xaaaaaaaa, x64arch=True, signed=False)[0]

def apply_lut(self):
if not self.lut_applied:
Expand Down