Page MenuHomeFreeBSD
Paste P172

Possible copyout_strings cleanup
ActivePublic

Authored by jhb on Apr 13 2018, 8:52 PM.
Tags
None
Referenced Files
F3308258: Possible copyout_strings cleanup
Apr 13 2018, 8:58 PM
F3308252: Possible copyout_strings cleanup
Apr 13 2018, 8:52 PM
Subscribers
None
vectp = (char **)destp;
if (imgp->auxargs) {
/*
* Allocate room on the stack for the ELF auxargs
* array. It has up to AT_COUNT entries each of which
* contains 2 pointers.
*/
vectp -= AT_COUNT * 2;
}
/*
* Allocate room for the argv[] and env vectors including the
* terminating NULL pointers.
*/
vectp -= imgp->args->argc + 1 + imgp->args->envc + 1;

Event Timeline

jhb created this object in space S1 Global.