summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/reallocf.c
diff options
context:
space:
mode:
authormjg <mjg@FreeBSD.org>2014-06-23 01:28:18 +0000
committermjg <mjg@FreeBSD.org>2014-06-23 01:28:18 +0000
commitdc769e3b99fb91d7c0744365e48470b2e288aa23 (patch)
tree9066f00e1c5ab7df6296051959442aeb13af543d /lib/libc/stdlib/reallocf.c
parenta10172c6e2ac4d6f7b8539c9efb43b495e764cea (diff)
downloadFreeBSD-src-dc769e3b99fb91d7c0744365e48470b2e288aa23.zip
FreeBSD-src-dc769e3b99fb91d7c0744365e48470b2e288aa23.tar.gz
Tidy up fd-related functions called by do_execve
o assert in each one that fdp is not shared o remove unnecessary NULL checks - all userspace processes have fdtables and kernel processes cannot execve o remove comments about the danger of fd_ofiles getting reallocated - fdtable is not shared and fd_ofiles could be only reallocated if new fd was about to be added, but if that was possible the code would already be buggy as setugidsafety work could be undone MFC after: 1 week
Diffstat (limited to 'lib/libc/stdlib/reallocf.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud