Detours icon indicating copy to clipboard operation
Detours copied to clipboard

Compatibility with Hardware-enforced Stack Protection (/CETCOMPAT)

Open matbech opened this issue 4 years ago • 2 comments

I was wondering if Detours is compatible with the Hardware-enforced Stack Protection (/CETCOMPAT linker option)?

More details about CETCOMPAT

  1. /CETCOMPAT (CET Shadow Stack compatible)
  2. Developer Guidance for Hardware-enforced Stack Protection

matbech avatar May 11 '21 19:05 matbech

compatible, but can not use with VMProtect similar products.

sonyps5201314 avatar Jun 10 '21 12:06 sonyps5201314

I've built Detours with /CETCOMPAT /guard:ehcont fine, and it runs successfully on both non-CET compatible and CET-compatible hardware. Seems to work fine, for my uses (detouring a function in user32.dll). Haven't tried strict mode.

sylveon avatar Jul 23 '21 20:07 sylveon