AFLplusplus / LibAFL

Advanced Fuzzing Library - Slot your Fuzzer together in Rust! Scales across cores and machines. For Windows, Android, MacOS, Linux, no_std, ...
Other
2.03k stars 319 forks source link

no AsanBacktraceObserver in observers #971

Closed cokeBeer closed 1 year ago

cokeBeer commented 1 year ago

Describe the bug no AsanBacktraceObserver in observers

To Reproduce Steps to reproduce the behavior:

  1. copy code from fuzzers/backtrace_baby_fuzzers/forkserver_executor/src/main.rs
  2. cargo run

Expected behavior success

Screen output/Screenshots

image

Additional context Seems there is an ASANBacktraceObserver

domenukk commented 1 year ago

Probably a merge fail, it should be Asan or ASan for both. Interesting that it didn't come up in CI

domenukk commented 1 year ago

Where did you find the reference about ASANBacktraceObserver? Seems like you looked at an older version of the file

cokeBeer commented 1 year ago

The error information told me that there is an ASANBacktraceObserver. I tried to import it in my IDE. It can be found in libafl-0.8.2/src/observers/stacktrace.rs. Looks like the ASANBacktraceObserver has became AsanBacktraceObserver in master branch but does not change in package.

domenukk commented 1 year ago

Yes you can either use the 0.8.2 tag, or you have to use the current main branch in your Cargo.toml.

You can do something like

libafl = { git = "https://github.com/AFLplusplus/LibAFL.git", rev = "7ed1ac9" }
domenukk commented 1 year ago

We will release 0.9 soon, then the API is correct again