LibAFL
LibAFL copied to clipboard
IfElseRuntime incorrect behaviour
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:
- Create a fuzzer with
asanin theruntimesforFridaInstrumentationHelper - Verify that ASAN is enabled and working
- Replace
asanwithIfElseRuntime::new(move || Ok(true), tuple_list!(asan), tuple_list!()) - Observe that ASAN is no longer working
Expected behavior
IfElseRuntime::new(move || Ok(true), tuple_list!(asan), tuple_list!()) should behave identically to asan.