Control flow integrity, or CFI, is an exploit mitigation technique that prevents bugs from turning into exploits, Microsoft calls this Control Flow Guard in their C++ compiler.