This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Possible bug in fortified stpncpy
- From: Zack Weinberg <zackw at panix dot com>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Sun, 09 Aug 2015 00:01:30 -0400
- Subject: Re: Possible bug in fortified stpncpy
- Authentication-results: sourceware.org; auth=none
- References: <CAKCAbMjJ9aVZhc9jvn3HOwkSViCEybXmg=buNDttwctCOxvKvg at mail dot gmail dot com> <20150809033233 dot GO30077 at vapier>
On August 8, 2015 11:32:33 PM EDT, Mike Frysinger <vapier@gentoo.org> wrote:
>On 08 Aug 2015 17:06, Zack Weinberg wrote:
>> may be backward. The code should call the runtime-checking function
>> if __n is not constant, or if __n is known to be LARGER than the size
>> of the destination. Ne?
>
>agreed. feel like sending a patch ? :)
In the morning, unless you want to beat me to it; it's only two characters need changing :-)
zw