Page MenuHomeFreeBSD

Possible copyout_strings cleanup

Authored By
jhb
Apr 13 2018, 8:52 PM
Size
416 B
Referenced Files
None
Subscribers
None

Possible copyout_strings cleanup

/*
* If we have a valid auxargs ptr, prepare some room
* on the stack.
*/
vectp = (char **)destp;
if (imgp->auxargs) {
/*
* The ELF auxargs array has up to AT_COUNT entries each
* of which contains 2 pointers.
*/
vectp -= AT_COUNT * 2;
}
/*
* The '+ 2' is for the null pointers at the end of each of
* the arg and env vector sets.
*/
vectp -= imgp->args->argc + imgp->args->envc + 2;

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1343267
Default Alt Text
Possible copyout_strings cleanup (416 B)

Event Timeline