LibAFL icon indicating copy to clipboard operation
LibAFL copied to clipboard

IfElseRuntime incorrect behaviour

Open Muirey03 opened this issue 2 months ago • 2 comments

Describe the bug FridaRuntimes used in IfElseRuntime do not work correctly. This breaks ASAN in the frida_libpng example fuzzer for example.

To Reproduce Either simply run the frida_libpng example fuzzer and observe that ASAN is not working correctly, or:

  1. Create a fuzzer with asan in the runtimes for FridaInstrumentationHelper
  2. Verify that ASAN is enabled and working
  3. Replace asan with IfElseRuntime::new(move || Ok(true), tuple_list!(asan), tuple_list!())
  4. Observe that ASAN is no longer working

Expected behavior IfElseRuntime::new(move || Ok(true), tuple_list!(asan), tuple_list!()) should behave identically to asan.

Muirey03 avatar Oct 27 '25 13:10 Muirey03