Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 May 2001 13:05:27 -0700 (PDT)
From:      Ian Dowse <iedowse@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/rpc rpc_generic.c
Message-ID:  <200105122005.f4CK5RK46561@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105122005.f4CK5RK46561>