Page MenuHomeFreeBSD
Paste P172

Possible copyout_strings cleanup
ActivePublic

Authored by jhb on Apr 13 2018, 8:52 PM.
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 paste.Apr 13 2018, 8:52 PM
jhb created this object in space S1 Global.
jhb edited the content of this paste. (Show Details)Apr 13 2018, 8:58 PM