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
This commit is contained in:
Marcin Kozlowski 2021-10-15 09:56:26 +02:00 committed by GitHub
parent 0a1e8be256
commit d71f0cf5bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -242,7 +242,10 @@ where
.match_name_mut::<MapFeedbackState<T>>(&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() {