This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: nonstrings in Glibc
- From: Carlos O'Donell <carlos at redhat dot com>
- To: Martin Sebor <msebor at gmail dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 20 Nov 2017 10:20:33 -0800
- Subject: Re: nonstrings in Glibc
- Authentication-results: sourceware.org; auth=none
- References: <f5db1a7c-432b-ee74-45ee-a213c96f364b@gmail.com>
On 11/20/2017 08:54 AM, Martin Sebor wrote:
> I'm done testing my update to the -Wstringop-truncation GCC patch
> to find misuses of non-string arrays. With the very limited use
> of attribute nonstring it only found one potential bug (22447).
> I've been looking at other uses of strncpy in Glibc to see if there
> are other arrays that would benefit from the attribute. I'm not
> sufficiently familiar with Glibc data structures so it's a very
> slow going. Could someone help suggests data structures with
> array members that might be candidates?
struct sockaddr's sun_path?
http://thread.gmane.org/gmane.comp.standards.posix.austin.general/5735
Is that what you need help finding?
--
Cheers,
Carlos.