Skip to content

Commit

Permalink
Merge pull request #3 from facebook/master
Browse files Browse the repository at this point in the history
Merge pull request facebook#72 from xurunkang/master
  • Loading branch information
fengjixuchui authored Apr 25, 2020
2 parents 85d7e69 + 8ef82f0 commit 2b7bef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fishhook.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ static void perform_rebinding_with_section(struct rebindings_entry *rebindings,
nlist_t *symtab,
char *strtab,
uint32_t *indirect_symtab) {
const bool isDataConst = strcmp(section->segname, "__DATA_CONST") == 0;
const bool isDataConst = strcmp(section->segname, SEG_DATA_CONST) == 0;
uint32_t *indirect_symbol_indices = indirect_symtab + section->reserved1;
void **indirect_symbol_bindings = (void **)((uintptr_t)slide + section->addr);
vm_prot_t oldProtection = VM_PROT_READ;
Expand Down

0 comments on commit 2b7bef3

Please sign in to comment.