CVS commit: [netbsd-5] src/lib/libc/rpc
Module Name:src Committed By: riz Date: Thu Dec 9 04:14:46 UTC 2010 Modified Files: src/lib/libc/rpc [netbsd-5]: xdr_rec.c Log Message: Pull up following revision(s) (requested by dholland in ticket #1493): lib/libc/rpc/xdr_rec.c: revision 1.31 PR/44132: Wolfgang Stukenbrock: libc/rpc may overwrite not-allocated memory Return XPRT_DIED when realloc fails for lack of a better error. To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.29.4.1 src/lib/libc/rpc/xdr_rec.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libc/rpc/xdr_rec.c diff -u src/lib/libc/rpc/xdr_rec.c:1.29 src/lib/libc/rpc/xdr_rec.c:1.29.4.1 --- src/lib/libc/rpc/xdr_rec.c:1.29 Sun Aug 17 10:50:50 2008 +++ src/lib/libc/rpc/xdr_rec.c Thu Dec 9 04:14:46 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: xdr_rec.c,v 1.29 2008/08/17 10:50:50 rtr Exp $ */ +/* $NetBSD: xdr_rec.c,v 1.29.4.1 2010/12/09 04:14:46 riz Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for @@ -35,7 +35,7 @@ static char *sccsid = @(#)xdr_rec.c 1.21 87/08/11 Copyr 1984 Sun Micro; static char *sccsid = @(#)xdr_rec.c 2.2 88/08/01 4.0 RPCSRC; #else -__RCSID($NetBSD: xdr_rec.c,v 1.29 2008/08/17 10:50:50 rtr Exp $); +__RCSID($NetBSD: xdr_rec.c,v 1.29.4.1 2010/12/09 04:14:46 riz Exp $); #endif #endif @@ -581,8 +581,12 @@ return FALSE; } rstrm-in_reclen += fraglen; - if (rstrm-in_reclen rstrm-recvsize) - realloc_stream(rstrm, rstrm-in_reclen); + if ((u_int)rstrm-in_reclen rstrm-recvsize) { + if (!realloc_stream(rstrm, rstrm-in_reclen)) { +*statp = XPRT_DIED; +return FALSE; + } + } if (rstrm-in_header LAST_FRAG) { rstrm-in_header = ~LAST_FRAG; rstrm-last_frag = TRUE;
CVS commit: [netbsd-5] src/lib/libc/rpc
Module Name:src Committed By: snj Date: Sun Apr 12 02:25:26 UTC 2009 Modified Files: src/lib/libc/rpc [netbsd-5]: rpc.3 Log Message: Pull up following revision(s) (requested by joerg in ticket #692): lib/libc/rpc/rpc.3: revision 1.21 Fix markup. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.20.24.1 src/lib/libc/rpc/rpc.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libc/rpc/rpc.3 diff -u src/lib/libc/rpc/rpc.3:1.20 src/lib/libc/rpc/rpc.3:1.20.24.1 --- src/lib/libc/rpc/rpc.3:1.20 Sat Sep 16 08:29:08 2006 +++ src/lib/libc/rpc/rpc.3 Sun Apr 12 02:25:25 2009 @@ -1,6 +1,6 @@ .\ @(#)rpc.3n 1.31 93/08/31 SMI; from SVr4 .\ Copyright 1989 ATT -.\ $NetBSD: rpc.3,v 1.20 2006/09/16 08:29:08 yamt Exp $ +.\ $NetBSD: rpc.3,v 1.20.24.1 2009/04/12 02:25:25 snj Exp $ .Dd May 7, 1993 .Dt RPC 3 .Os @@ -104,7 +104,7 @@ .El .Pp If -.I nettype +.Fa nettype is .Dv NULL , it defaults to @@ -312,178 +312,92 @@ .Bl -column authunix_create_default() rpc_clnt_create(3) .It Em RPC Routine Ta Em Manual Reference Page .Pp -.It Fn auth_destroy Ta -.Xr rpc_clnt_auth 3 , -.It Fn authdes_create Ta -.Xr rpc_soc 3 , -.It Fn authnone_create Ta -.Xr rpc_clnt_auth 3 , -.It Fn authsys_create Ta -.Xr rpc_clnt_auth 3 , -.It Fn authsys_create_default Ta -.Xr rpc_clnt_auth 3 , -.It Fn authunix_create Ta -.Xr rpc_soc 3 , -.It Fn authunix_create_default Ta -.Xr rpc_soc 3 , -.It Fn callrpc Ta -.Xr rpc_soc 3 , -.It Fn clnt_broadcast Ta -.Xr rpc_soc 3 , -.It Fn clnt_call Ta -.Xr rpc_clnt_calls 3 , -.It Fn clnt_control Ta -.Xr rpc_clnt_create 3 , -.It Fn clnt_create Ta -.Xr rpc_clnt_create 3 , -.It Fn clnt_destroy Ta -.Xr rpc_clnt_create 3 , -.It Fn clnt_dg_create Ta -.Xr rpc_clnt_create 3 , -.It Fn clnt_freeres Ta -.Xr rpc_clnt_calls 3 , -.It Fn clnt_geterr Ta -.Xr rpc_clnt_calls 3 , -.It Fn clnt_pcreateerror Ta -.Xr rpc_clnt_create 3 , -.It Fn clnt_perrno Ta -.Xr rpc_clnt_calls 3 , -.It Fn clnt_perror Ta -.Xr rpc_clnt_calls 3 , -.It Fn clnt_raw_create Ta -.Xr rpc_clnt_create 3 , -.It Fn clnt_spcreateerror Ta -.Xr rpc_clnt_create 3 , -.It Fn clnt_sperrno Ta -.Xr rpc_clnt_calls 3 , -.It Fn clnt_sperror Ta -.Xr rpc_clnt_calls 3 , -.It Fn clnt_tli_create Ta -.Xr rpc_clnt_create 3 , -.It Fn clnt_tp_create Ta -.Xr rpc_clnt_create 3 , -.It Fn clnt_udpcreate Ta -.Xr rpc_soc 3 , -.It Fn clnt_vc_create Ta -.Xr rpc_clnt_create 3 , -.It Fn clntraw_create Ta -.Xr rpc_soc 3 , -.It Fn clnttcp_create Ta -.Xr rpc_soc 3 , -.It Fn clntudp_bufcreate Ta -.Xr rpc_soc 3 , -.It Fn get_myaddress Ta -.Xr rpc_soc 3 , -.It Fn pmap_getmaps Ta -.Xr rpc_soc 3 , -.It Fn pmap_getport Ta -.Xr rpc_soc 3 , -.It Fn pmap_rmtcall Ta -.Xr rpc_soc 3 , -.It Fn pmap_set Ta -.Xr rpc_soc 3 , -.It Fn pmap_unset Ta -.Xr rpc_soc 3 , -.It Fn registerrpc Ta -.Xr rpc_soc 3 , -.It Fn rpc_broadcast Ta -.Xr rpc_clnt_calls 3 , -.It Fn rpc_broadcast_exp Ta -.Xr rpc_clnt_calls 3 , -.It Fn rpc_call Ta -.Xr rpc_clnt_calls 3 , -.It Fn rpc_reg Ta -.Xr rpc_svc_calls 3 , -.It Fn svc_create Ta -.Xr rpc_svc_create 3 , -.It Fn svc_destroy Ta -.Xr rpc_svc_create 3 , -.It Fn svc_dg_create Ta -.Xr rpc_svc_create 3 , -.It Fn svc_dg_enablecache Ta -.Xr rpc_svc_calls 3 , -.It Fn svc_fd_create Ta -.Xr rpc_svc_create 3 , -.It Fn svc_fds Ta -.Xr rpc_soc 3 , -.It Fn svc_freeargs Ta -.Xr rpc_svc_reg 3 , -.It Fn svc_getargs Ta -.Xr rpc_svc_reg 3 , -.It Fn svc_getcaller Ta -.Xr rpc_soc 3 , -.It Fn svc_getreq Ta -.Xr rpc_soc 3 , -.It Fn svc_getreqset Ta -.Xr rpc_svc_calls 3 , -.It Fn svc_getrpccaller Ta -.Xr rpc_svc_calls 3 , -.It Fn svc_kerb_reg Ta -.Xr kerberos_rpc 3 , -.It Fn svc_raw_create Ta -.Xr rpc_svc_create 3 , -.It Fn svc_reg Ta -.Xr rpc_svc_calls 3 , -.It Fn svc_register Ta -.Xr rpc_soc 3 , -.It Fn svc_run Ta -.Xr rpc_svc_reg 3 , -.It Fn svc_sendreply Ta -.Xr rpc_svc_reg 3 , -.It Fn svc_tli_create Ta -.Xr rpc_svc_create 3 , -.It Fn svc_tp_create Ta -.Xr rpc_svc_create 3 , -.It Fn svc_unreg Ta -.Xr rpc_svc_calls 3 , -.It Fn svc_unregister Ta -.Xr rpc_soc 3 , -.It Fn svc_vc_create Ta -.Xr rpc_svc_create 3 , -.It Fn svcerr_auth Ta -.Xr rpc_svc_err 3 , -.It Fn svcerr_decode Ta -.Xr rpc_svc_err 3 , -.It Fn svcerr_noproc Ta -.Xr rpc_svc_err 3 , -.It Fn svcerr_noprog Ta -.Xr rpc_svc_err 3 , -.It Fn svcerr_progvers Ta -.Xr rpc_svc_err 3 , -.It Fn svcerr_systemerr Ta -.Xr rpc_svc_err 3 , -.It Fn svcerr_weakauth Ta -.Xr rpc_svc_err 3 , -.It Fn svcfd_create Ta -.Xr rpc_soc 3 , -.It Fn svcraw_create Ta -.Xr rpc_soc 3 , -.It Fn svctcp_create Ta -.Xr rpc_soc 3 , -.It Fn svcudp_bufcreate Ta -.Xr rpc_soc 3 , -.It Fn svcudp_create Ta -.Xr rpc_soc 3 , -.It Fn xdr_accepted_reply Ta -.Xr rpc_xdr 3 , -.It Fn xdr_authsys_parms Ta -.Xr rpc_xdr 3 , -.It Fn xdr_authunix_parms Ta -.Xr rpc_soc 3 , -.It Fn xdr_callhdr Ta -.Xr rpc_xdr 3 , -.It Fn xdr_callmsg Ta -.Xr rpc_xdr 3 , -.It Fn xdr_opaque_auth Ta -.Xr rpc_xdr 3 , -.It Fn xdr_rejected_reply Ta -.Xr rpc_xdr 3 , -.It Fn xdr_replymsg Ta
CVS commit: [netbsd-5] src/lib/libc/rpc
Module Name:src Committed By: snj Date: Sun Apr 12 02:26:46 UTC 2009 Modified Files: src/lib/libc/rpc [netbsd-5]: rpc_xdr.3 Log Message: Pull up following revision(s) (requested by joerg in ticket #693): lib/libc/rpc/rpc_xdr.3: revision 1.8 Fix markup. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.7.38.1 src/lib/libc/rpc/rpc_xdr.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libc/rpc/rpc_xdr.3 diff -u src/lib/libc/rpc/rpc_xdr.3:1.7 src/lib/libc/rpc/rpc_xdr.3:1.7.38.1 --- src/lib/libc/rpc/rpc_xdr.3:1.7 Wed Apr 16 13:34:43 2003 +++ src/lib/libc/rpc/rpc_xdr.3 Sun Apr 12 02:26:46 2009 @@ -2,7 +2,7 @@ .\ Copyright 1989 ATT .\ @(#)rpc_xdr.new 1.1 89/04/06 SMI; .\ Copyright (c) 1988 Sun Microsystems, Inc. - All Rights Reserved. -.\ $NetBSD: rpc_xdr.3,v 1.7 2003/04/16 13:34:43 wiz Exp $ +.\ $NetBSD: rpc_xdr.3,v 1.7.38.1 2009/04/12 02:26:46 snj Exp $ .Dd May 3, 1993 .Dt RPC_XDR 3 .Os @@ -60,9 +60,7 @@ It includes machine-name, uid, gid list, etc. .Pp .It Fn xdr_callhdr -Used for describing -.SM RPC -call header messages. +Used for describing RPC call header messages. It encodes the static part of the call message header in the XDR language format. It includes information such as transaction
CVS commit: [netbsd-5] src/lib/libc/rpc
Module Name:src Committed By: snj Date: Sun Apr 12 02:27:36 UTC 2009 Modified Files: src/lib/libc/rpc [netbsd-5]: rpcbind.3 Log Message: Pull up following revision(s) (requested by joerg in ticket #693): lib/libc/rpc/rpcbind.3: revision 1.11 Fix markup. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.10.26.1 src/lib/libc/rpc/rpcbind.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libc/rpc/rpcbind.3 diff -u src/lib/libc/rpc/rpcbind.3:1.10 src/lib/libc/rpc/rpcbind.3:1.10.26.1 --- src/lib/libc/rpc/rpcbind.3:1.10 Sat Dec 3 15:16:19 2005 +++ src/lib/libc/rpc/rpcbind.3 Sun Apr 12 02:27:36 2009 @@ -1,7 +1,7 @@ .\ @(#)rpcbind.3n 1.25 93/05/07 SMI; from SVr4 .\ Copyright 1989 ATT .\ Copyright (c) 1988 Sun Microsystems, Inc. - All Rights Reserved. -.\ $NetBSD: rpcbind.3,v 1.10 2005/12/03 15:16:19 yamt Exp $ +.\ $NetBSD: rpcbind.3,v 1.10.26.1 2009/04/12 02:27:36 snj Exp $ .Dd December 4, 2005 .Dt RPCBIND 3 .Os @@ -125,7 +125,7 @@ This procedure should normally be used for a ``ping'' and nothing else. This routine allows programs to do lookup and call, all in one step. -.IP +.Pp Note: Even if the server is not running .Fn rpcb_rmtcall does not return any error messages to the caller. @@ -156,7 +156,7 @@ .Dv FALSE otherwise. (See also -.B svc_reg(\|) +.Fn svc_reg in .Xr rpc_svc_calls 3 . If there already exists such an entry with rpcbind,
CVS commit: [netbsd-5] src/lib/libc/rpc
Module Name:src Committed By: snj Date: Fri Apr 10 18:09:10 UTC 2009 Modified Files: src/lib/libc/rpc [netbsd-5]: rpc_clnt_create.3 Log Message: Pull up following revision(s) (requested by joerg in ticket #682): lib/libc/rpc/rpc_clnt_create.3: revision 1.10 Fix markup To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.9.38.1 src/lib/libc/rpc/rpc_clnt_create.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libc/rpc/rpc_clnt_create.3 diff -u src/lib/libc/rpc/rpc_clnt_create.3:1.9 src/lib/libc/rpc/rpc_clnt_create.3:1.9.38.1 --- src/lib/libc/rpc/rpc_clnt_create.3:1.9 Wed Apr 16 13:34:43 2003 +++ src/lib/libc/rpc/rpc_clnt_create.3 Fri Apr 10 18:09:10 2009 @@ -2,7 +2,7 @@ .\ Copyright 1989 ATT .\ @(#)rpc_clnt_create 1.5 89/07/24 SMI; .\ Copyright (c) 1988 Sun Microsystems, Inc. - All Rights Reserved. -.\ $NetBSD: rpc_clnt_create.3,v 1.9 2003/04/16 13:34:43 wiz Exp $ +.\ $NetBSD: rpc_clnt_create.3,v 1.9.38.1 2009/04/10 18:09:10 snj Exp $ .Dd May 7, 1993 .Dt RPC_CLNT_CREATE 3 .Os @@ -287,7 +287,6 @@ on each call. .Pp .It Fn clnt_raw_create -.IP This routine creates an RPC client handle for the remote program .Fa prognum @@ -328,7 +327,7 @@ For connectionless transports, if .Fa svcaddr is -..Dv NULL , +.Dv NULL , .Dv RPC_UNKNOWNADDR error is set. .Fa fildes