summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/regexec.c
diff options
context:
space:
mode:
authormartynas <martynas@openbsd.org>2014-05-06 23:32:34 +0000
committermartynas <martynas@openbsd.org>2014-05-06 23:32:34 +0000
commit74fa18875271231e9dba5633bbc7dc87f158e9ec (patch)
treec3fd807ff1a27dfda0ed45a9e3de64632f53155e /lib/libc/regex/regexec.c
parentfactor out the safepath (diff)
downloadwireguard-openbsd-74fa18875271231e9dba5633bbc7dc87f158e9ec.tar.xz
wireguard-openbsd-74fa18875271231e9dba5633bbc7dc87f158e9ec.zip
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!
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions