Re:If somebody tries to hot-patch an already-hot-patched fun...
by Dwedit on Thursday October 08, 2026 @10:35AM
(#50006310)
If you have the standard two-byte backwards jump pointing to a longer jump instruction, you also have another happy case for overriding it (just change the long jump).
Meanwhile, the Microsoft Detours library supports detouring other kinds of instructions at the beginning of a function. It's not exclusively for the 'two byte nop and blank space' thing.
Naive implementation of this scheme doesn't allow stacking.