"Strong" stack protection for GCC
"Strong" stack protection for GCC
Posted Feb 9, 2014 19:05 UTC (Sun) by eru (subscriber, #2753)In reply to: "Strong" stack protection for GCC by jzbiciak
Parent article: "Strong" stack protection for GCC
if you have anything that fills a buffer in reverse (it happens, but it's admittedly far less common), you could do the same there.
You could have two canaries: the second one is at the opposite end of the stack frame. A colleague actually added this feature to an in-house C compiler. The run-time system then reports which canary got killed. This was done to help catch programming errors, not so much for security.
