How to XOR return address

Hi all,

How to XOR the return address on the stack with a canary word both are 32 bits? Is there a method to implement it?
Thank you.

Ying

Hi all,

How to XOR the return address on the stack with a canary word both are
32 bits? Is there a method to implement it?
Thank you.

Just to be sure... you realize llvm already supports stack canary insertion?