This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: getpwnam(NULL) get "segmentation fault"
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: Andrew Pinski <pinskia at gmail dot com>, Sheng Yong <shengyong1 at huawei dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 5 Jun 2015 14:00:24 -0700 (PDT)
- Subject: Re: getpwnam(NULL) get "segmentation fault"
- Authentication-results: sourceware.org; auth=none
- References: <55696C2D dot 5040200 at huawei dot com> <CA+=Sn1nXVM17q2N155yMi9DvVw5Fw-4Yaq97uYiJfd-UrS3hRA at mail dot gmail dot com> <20150530173322 dot GG2101 at vapier>
> 2015-05-31 Mike Frysinger <vapier@gentoo.org>
>
> * pwd/pwd.h (fgetpwent): Add __nonnull markings.
> (putpwent): Likewise.
> (getpwnam): Likewise.
> (getpwent_r): Likewise.
> (getpwuid_r): Likewise.
> (getpwnam_r): Likewise.
> (fgetpwent_r): Likewise.
Looks good.