Skip to content

Commit

Permalink
Fix wrong type for main_bitmap
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
ducphanduyagentp authored Sep 26, 2024
1 parent decaf75 commit 6e25c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kafl_fuzzer/manager/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")

Expand Down

0 comments on commit 6e25c34

Please sign in to comment.