dhh1128 / intent

the intent formal language
https://intentlang.org
2 stars 1 forks source link

implement stack canaries #73

Open dhh1128 opened 10 years ago

dhh1128 commented 10 years ago

on program startup, choose random 32- or 64-bit number as canary; write-protect that part of memory store canary XOR return addr between saved %ebp and first local variable on return, check canary to see if we're returning to the same place we expected

More info: look for StackGuard, by Wagle and Cowan