summaryrefslogtreecommitdiffstats
path: root/usr.bin/file/xmalloc.h
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2015-07-20 07:45:23 +0000
committerdlg <dlg@openbsd.org>2015-07-20 07:45:23 +0000
commita8ca10d8375ed007ed894ebd12434a33d3b7d673 (patch)
tree48d7e1f4ea4590866dc30eae408d1a848cd2aaf9 /usr.bin/file/xmalloc.h
parentwhitespace; (diff)
downloadwireguard-openbsd-a8ca10d8375ed007ed894ebd12434a33d3b7d673.tar.xz
wireguard-openbsd-a8ca10d8375ed007ed894ebd12434a33d3b7d673.zip
go a bit further with miods last change to copy{in,out}{,str} and
stash the address of the user structure to avoid having to always follow two pointers to get to the address of the onfault handler. this lets the code shrink and avoids some register use. while here, move the range checking of the arguments before saving the callers args onto the stack so we can ret faster on error. ok miod@
Diffstat (limited to 'usr.bin/file/xmalloc.h')
0 files changed, 0 insertions, 0 deletions