svn commit: r278041 - head/lib/libc/rpc

Pedro F. Giffuni pfg at FreeBSD.org
Mon Feb 2 00:21:35 UTC 2015


Author: pfg
Date: Mon Feb  2 00:21:34 2015
New Revision: 278041
URL: https://svnweb.freebsd.org/changeset/base/278041

Log:
  rpc: Uninitialized pointer read
  
  Initialize *xprt to avoid exposing a random value
  in cleanup_svc_vc_create.
  
  CID:		1018723
  Phabric:	D1749
  Reviewed by:	alfred

Modified:
  head/lib/libc/rpc/svc_vc.c

Modified: head/lib/libc/rpc/svc_vc.c
==============================================================================
--- head/lib/libc/rpc/svc_vc.c	Mon Feb  2 00:17:36 2015	(r278040)
+++ head/lib/libc/rpc/svc_vc.c	Mon Feb  2 00:21:34 2015	(r278041)
@@ -128,7 +128,7 @@ svc_vc_create(fd, sendsize, recvsize)
 	u_int sendsize;
 	u_int recvsize;
 {
-	SVCXPRT *xprt;
+	SVCXPRT *xprt = NULL;
 	struct cf_rendezvous *r = NULL;
 	struct __rpc_sockinfo si;
 	struct sockaddr_storage sslocal;


More information about the svn-src-all mailing list