Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
NetBSD master CVS tree commits
gwr
Tue May 20 08:21:53 PDT 1997
Update of /cvsroot/doc
In directory netbsd1:/var/slash-tmp/cvs-serv1443
Modified Files:
3RDPARTY
Log Message:
Update the notes for zlib.
lukem
Tue May 20 08:25:41 PDT 1997
Update of /cvsroot/src/lib/libc/yp
In directory netbsd1:/var/slash-tmp/cvs-serv1413
Modified Files:
yp_first.c yp_master.c yp_match.c ypclnt.3
Log Message:
Some cleanups for [lib/3655]
* 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])
Home |
Main Index |
Thread Index |
Old Index