301e6e6c32
* Ensure that all 'char **outXXX' pointers aren't the null pointer before use. * Set *outXXX=NULL before checking any other arguments. * Document that *outXXX will always be NULL or a malloc(3)ed string unless outXXX was NULL (in which case YPERR_BADARGS will be returned and the caller shouldn't attempt to free(*outXXX) if *outXXX != NULL; These changes should prevent most occurances of coredumps when a bad argument was given to a yp client function and the caller attempts to free an outvalue that isn't the null pointer. To be really safe, the caller probably should set the *outvalue=NULL anyway (ref: PR [lib/3580]) |
||
---|---|---|
.. | ||
Makefile.inc | ||
xdryp.c | ||
yp_all.c | ||
yp_first.c | ||
yp_maplist.c | ||
yp_master.c | ||
yp_match.c | ||
yp_order.c | ||
ypclnt.3 | ||
yperr_string.c | ||
yplib.c | ||
ypprot_err.c |