libafl: asserts in MapFeedback::is_interesting to hint the compiler

This commit is contained in:
Andrea Fioraldi 2021-05-21 15:42:28 +02:00
parent f506b3722e
commit dd6f6fa03a

View File

@ -237,6 +237,9 @@ where
.match_name_mut::<MapFeedbackState<T>>(&self.name)
.unwrap();
assert!(size <= map_state.history_map.len());
assert!(size <= observer.map().len());
if self.indexes.is_none() && self.novelties.is_none() {
for i in 0..size {
let history = map_state.history_map[i];