parent
8899a3b01c
commit
667adf97ec
@ -46,9 +46,7 @@ pub use __afl_area_ptr as EDGES_MAP_PTR;
|
|||||||
pub fn autotokens() -> Result<Tokens, Error> {
|
pub fn autotokens() -> Result<Tokens, Error> {
|
||||||
unsafe {
|
unsafe {
|
||||||
if __token_start.is_null() || __token_stop.is_null() {
|
if __token_start.is_null() || __token_stop.is_null() {
|
||||||
Err(Error::illegal_state(
|
Ok(Tokens::default())
|
||||||
"AutoTokens section not found, likely the target is not compiled with AutoTokens",
|
|
||||||
))
|
|
||||||
} else {
|
} else {
|
||||||
// we can safely unwrap
|
// we can safely unwrap
|
||||||
Tokens::from_ptrs(__token_start, __token_stop)
|
Tokens::from_ptrs(__token_start, __token_stop)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user