From owner-cvs-all Sat May 12 13: 5:30 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 603C037B424; Sat, 12 May 2001 13:05:27 -0700 (PDT) (envelope-from iedowse@FreeBSD.org) Received: (from iedowse@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4CK5RK46561; Sat, 12 May 2001 13:05:27 -0700 (PDT) (envelope-from iedowse) Message-Id: <200105122005.f4CK5RK46561@freefall.freebsd.org> From: Ian Dowse Date: Sat, 12 May 2001 13:05:27 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/rpc rpc_generic.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG iedowse 2001/05/12 13:05:27 PDT Modified files: lib/libc/rpc rpc_generic.c Log: Extract the path from an AF_LOCAL sockaddr_un in a way that correctly terminates the string in all cases, based on code from netstat(1). The path in a sockaddr_un is terminated either by a '\0', or by the end of the sockaddr as defined by sun_len. Previously, the code could write the "safety" '\0' beyond the end of the sockaddr (sockaddr_un's need only be large enough to store sun_len bytes), and writing into the the supplied sockaddr is bad anyway. Revision Changes Path 1.5 +6 -3 src/lib/libc/rpc/rpc_generic.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message