This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug hurd/1254] getpeername(fd,NULL,&len) crashes even if len==0
- From: "samuel dot thibault at ens-lyon dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 17 Oct 2005 22:57:28 -0000
- Subject: [Bug hurd/1254] getpeername(fd,NULL,&len) crashes even if len==0
- References: <20050826230859.1254.tschwinge@gnu.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From samuel dot thibault at ens-lyon dot org 2005-10-17 22:57 -------
Hi, It doesn't work, because the af_family is not the first of the structure (there is af_len too), so that in getpeername(fd,NULL, 0), *len - offsetof(struct sockaddr, sa_family) becomes negative.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=1254
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.