Down the Rabbit Hole - Reverse Engineering Mac OS X
Down the Rabbit Hole - Reverse Engineering Mac OS X
Down the Rabbit Hole - Reverse Engineering Mac OS X
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Single-Instruction OverwritingBenefits:Atomic replacement. Safe in <strong>the</strong> face of multiplepreemptive threads calling <strong>the</strong> original function.Less likely to harmfully impact <strong>the</strong> original code. If youwish to reenter <strong>the</strong> original function from <strong>the</strong>override, you’ll need to re-execute <strong>the</strong> replacedinstruction. Moving less code around makes thismore likely to work.Compatibility. Works with <strong>the</strong> widest variety offunction prologs and o<strong>the</strong>r patchingimplementations (including our own!)Monday, February 9, 2009