selfrando
selfrando copied to clipboard
Support CFG on Windows together with Selfrando
On Windows programs with Control Flow Guard enabled, we may start seeing crashes due to CFG violations after shuffling functions. We should fix this by marking the new function locations as valid CFG targets (and perhaps even mark the old locations as invalid targets). One way to do this is with the SetProcessValidCallTargets
function, which we should look into.