From 6e25c34a7706b49a280ef75f316760e4aacd319e Mon Sep 17 00:00:00 2001 From: Duc Phan Date: Thu, 26 Sep 2024 14:37:21 +0700 Subject: [PATCH] Fix wrong type for main_bitmap Fix https://github.com/IntelLabs/kAFL/issues/298 This appears to happen when the target is slow and the manager tries to check for initial coverage? It can also happen when using multiple instances. The commit fixes the incorrect required type for `mm3.hash`. --- kafl_fuzzer/manager/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kafl_fuzzer/manager/manager.py b/kafl_fuzzer/manager/manager.py index 78b9303..7f91002 100644 --- a/kafl_fuzzer/manager/manager.py +++ b/kafl_fuzzer/manager/manager.py @@ -78,7 +78,7 @@ def send_next_task(self, conn): self.busy_events +=1 if self.busy_events >= self.config.processes: self.busy_events = 0 - main_bitmap = self.bitmap_storage.get_bitmap_for_node_type("regular").c_bitmap + main_bitmap = bytes(self.bitmap_storage.get_bitmap_for_node_type("regular").c_bitmap) if mmh3.hash(main_bitmap) == self.empty_hash: logger.warn("Coverage bitmap is empty?! Check -ip0 or try better seeds.")