diff --git a/libafl_targets/src/coverage.rs b/libafl_targets/src/coverage.rs index 2b6a9a27a5..0f737d2996 100644 --- a/libafl_targets/src/coverage.rs +++ b/libafl_targets/src/coverage.rs @@ -46,9 +46,7 @@ pub use __afl_area_ptr as EDGES_MAP_PTR; pub fn autotokens() -> Result { unsafe { if __token_start.is_null() || __token_stop.is_null() { - Err(Error::illegal_state( - "AutoTokens section not found, likely the target is not compiled with AutoTokens", - )) + Ok(Tokens::default()) } else { // we can safely unwrap Tokens::from_ptrs(__token_start, __token_stop)