11.07.2015 Views

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

SHOW MORE
SHOW LESS

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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!