Skip to content

Commit

Permalink
darwin: Temporarily disable CFInitialize code-path
Browse files Browse the repository at this point in the history
  • Loading branch information
oleavr committed May 7, 2024
1 parent cacdd3e commit 9cb925d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/darwin/frida-helper-backend-glue.m
Original file line number Diff line number Diff line change
Expand Up @@ -3796,7 +3796,11 @@ static void frida_darwin_helper_backend_launch_using_lsaw (NSString * identifier
core_foundation = gum_darwin_module_new_from_memory (CORE_FOUNDATION, self->task, details->range->base_address,
GUM_DARWIN_MODULE_FLAGS_NONE, NULL);

#if 1
self->cf_initialize_address = 0;
#else
self->cf_initialize_address = gum_darwin_module_resolve_symbol_address (core_foundation, "___CFInitialize");
#endif

if (self->cf_initialize_address != 0 && self->cpu_type == GUM_CPU_ARM)
self->cf_initialize_address |= 1;
Expand Down

0 comments on commit 9cb925d

Please sign in to comment.