When the stack protector heuristics doesn't cover a function, leave
authormartynas <martynas@openbsd.org>
Tue, 6 May 2014 23:32:34 +0000 (23:32 +0000)
committermartynas <martynas@openbsd.org>
Tue, 6 May 2014 23:32:34 +0000 (23:32 +0000)
commit74fa18875271231e9dba5633bbc7dc87f158e9ec
treec3fd807ff1a27dfda0ed45a9e3de64632f53155e
parentf65d31e68023a9e2e703c69ef15b6ee890db74e2
When the stack protector heuristics doesn't cover a function, leave
a little pointer-sized gap before the return value.  This protects
from common off-by-one type of bugs and costs nothing:  the attacker
won't be able to overwrite return pointer.  Developed at m2k14,
thanks for the hackathon!
gnu/gcc/gcc/cfgexpand.c