InterposeKit icon indicating copy to clipboard operation
InterposeKit copied to clipboard

restore floating point registers from stack in reverse order

Open ishutinvv opened this issue 3 years ago • 0 comments

We should restore registers preserved in stack in reverse order. Otherwise, it leads to shuffled values in those registers after trampoline.

The simplest way to reproduce is to swizzle any method from UIKit that accepts CGFloat or plain struct like CGRect. It's relevant only to arm64. Btw, regular registers get restored correctly.

ishutinvv avatar Dec 16 '22 08:12 ishutinvv