summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-11-23 22:37:29 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-11-23 22:37:29 +0000
commit9ec3cf4d01a11ccec3f60cb4e8b498a707924796 (patch)
treee284569a99a949810e53cb15e2e8248053fdb653
parent1409b93a7263389cdfd767bcbbd7e02fb107beb5 (diff)
mark some places that malloc is not checked
-rw-r--r--lib/libc/rpc/rpc_callmsg.c4
-rw-r--r--lib/libc/rpc/svc.c4
-rw-r--r--lib/libc/rpc/svc_run.c4
3 files changed, 8 insertions, 4 deletions
diff --git a/lib/libc/rpc/rpc_callmsg.c b/lib/libc/rpc/rpc_callmsg.c
index 38ee4afcbc6..5490ddb7230 100644
--- a/lib/libc/rpc/rpc_callmsg.c
+++ b/lib/libc/rpc/rpc_callmsg.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: rpc_callmsg.c,v 1.4 1996/11/14 06:27:18 etheisen Exp $";
+static char *rcsid = "$OpenBSD: rpc_callmsg.c,v 1.5 1999/11/23 22:37:27 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -123,6 +123,7 @@ xdr_callmsg(xdrs, cmsg)
if (oa->oa_base == NULL) {
oa->oa_base = (caddr_t)
mem_alloc(oa->oa_length);
+ /* XXX */
}
buf = XDR_INLINE(xdrs, RNDUP(oa->oa_length));
if (buf == NULL) {
@@ -157,6 +158,7 @@ xdr_callmsg(xdrs, cmsg)
if (oa->oa_base == NULL) {
oa->oa_base = (caddr_t)
mem_alloc(oa->oa_length);
+ /* XXX */
}
buf = XDR_INLINE(xdrs, RNDUP(oa->oa_length));
if (buf == NULL) {
diff --git a/lib/libc/rpc/svc.c b/lib/libc/rpc/svc.c
index bb82d599054..81279156d12 100644
--- a/lib/libc/rpc/svc.c
+++ b/lib/libc/rpc/svc.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: svc.c,v 1.11 1998/02/25 12:21:18 deraadt Exp $";
+static char *rcsid = "$OpenBSD: svc.c,v 1.12 1999/11/23 22:37:28 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -90,6 +90,7 @@ xprt_register(xprt)
fd_set *fds;
fds = (fd_set *)malloc(bytes);
+ /* XXX */
memset(fds, 0, bytes);
if (__svc_fdset) {
memcpy(fds, __svc_fdset, howmany(__svc_fdsetsize,
@@ -111,6 +112,7 @@ xprt_register(xprt)
if (sock+1 > size)
size = sock+1;
xp = (SVCXPRT **)mem_alloc(size * sizeof(SVCXPRT *));
+ /* XXX */
memset(xp, 0, size * sizeof(SVCXPRT *));
if (xports) {
memcpy(xp, xports, xportssize * sizeof(SVCXPRT *));
diff --git a/lib/libc/rpc/svc_run.c b/lib/libc/rpc/svc_run.c
index 5aa95b77d8d..600c7f03c88 100644
--- a/lib/libc/rpc/svc_run.c
+++ b/lib/libc/rpc/svc_run.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: svc_run.c,v 1.10 1998/03/19 00:27:24 millert Exp $";
+static char *rcsid = "$OpenBSD: svc_run.c,v 1.11 1999/11/23 22:37:28 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -56,7 +56,7 @@ svc_run()
if (__svc_fdset) {
int bytes = howmany(__svc_fdsetsize, NFDBITS) *
sizeof(fd_mask);
- fds = (fd_set *)malloc(bytes);
+ fds = (fd_set *)malloc(bytes); /* XXX */
memcpy(fds, __svc_fdset, bytes);
} else
fds = NULL;