From d71f0cf5bf4fc449585a4087e5fcf4a8eb443e38 Mon Sep 17 00:00:00 2001 From: Marcin Kozlowski Date: Fri, 15 Oct 2021 09:56:26 +0200 Subject: [PATCH] Error message in most likely case of using NONASAN and ASAN fuzzers using the same Fuzzer config (#329) * Error message in most likely case of using NONASAN and ASAN fuzzers using the same Fuzzer config * Typo * Changed to panic. Executed cargo fmt --- libafl/src/feedbacks/map.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libafl/src/feedbacks/map.rs b/libafl/src/feedbacks/map.rs index fa6734e2af..d7e4993544 100644 --- a/libafl/src/feedbacks/map.rs +++ b/libafl/src/feedbacks/map.rs @@ -242,7 +242,10 @@ where .match_name_mut::>(&self.name) .unwrap(); - assert!(size <= map_state.history_map.len()); + if size <= map_state.history_map.len() { + panic!("Could be a bug or are you using the same coverage map for NONASAN and ASAN fuzzers? Adjust to use different coverage map for each different config"); + } + assert!(size <= observer.map().len()); if self.novelties.is_some() {