Skip to content

IfElseRuntime incorrect behaviour #3460

@Muirey03

Description

@Muirey03

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions