Skip to content

Commit 6e25c34

Browse files
Fix wrong type for main_bitmap
Fix IntelLabs/kAFL#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`.
1 parent decaf75 commit 6e25c34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kafl_fuzzer/manager/manager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def send_next_task(self, conn):
7878
self.busy_events +=1
7979
if self.busy_events >= self.config.processes:
8080
self.busy_events = 0
81-
main_bitmap = self.bitmap_storage.get_bitmap_for_node_type("regular").c_bitmap
81+
main_bitmap = bytes(self.bitmap_storage.get_bitmap_for_node_type("regular").c_bitmap)
8282
if mmh3.hash(main_bitmap) == self.empty_hash:
8383
logger.warn("Coverage bitmap is empty?! Check -ip0 or try better seeds.")
8484

0 commit comments

Comments
 (0)