Date: Mon, 2 Feb 2015 00:21:35 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r278041 - head/lib/libc/rpc Message-ID: <201502020021.t120LZhX098117@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502020021.t120LZhX098117>