Skip to main content

patch_precode_target

Function patch_precode_target 

Source
pub unsafe fn patch_precode_target(
    precode_addr: usize,
    new_target: usize,
) -> Result<(), JitError>
Expand description

Rewrite a ff 25 precode’s target pointer to redirect the method.

§Safety

precode_addr must point to an ff 25 <disp32> instruction whose pointer slot is writable (or has been made writable).