You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Repository navigation
Interceptor on arm64 breaks functions with internal backward jumps to the middle of the trampoline (offset +4) #1083
I encountered a crash when hooking CoreFoundation's CFStringGetCharacterAtIndex on iOS/arm64 using the latest release. It overwrites the first 8 bytes of the function to place the trampoline. However, this specific function contains internal backward branches that target offset +4.
Original Disassembly
CoreFoundation`CFStringGetCharacterAtIndex:0x194d61494 <+0>: tbz x0, #0x3f,0x194d614a0 ; <+12>0x194d61498 <+4>: mov x2, x10x194d6149c <+8>: b 0x19508f340 ; objc_msgSend$characterAtIndex: ...0x194d614cc <+56>: tbz w8, #0x0,0x194d61498 ; Jumps back to +4
Activity