diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2015-07-20 07:45:24 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2015-07-20 07:45:24 +0000 |
commit | efe5c200ce46fee58e1e3358f7fff3e3987bab5e (patch) | |
tree | 66f65ae7005ce8aed0e48683afdead0cc3b429db /usr.bin/file | |
parent | 423470cf114e1aa9db7e73849d834cf7f5c933d8 (diff) |
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')
0 files changed, 0 insertions, 0 deletions