This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC][PATCH] Initial support for C11 Annex K Bounds checking functions
- From: KOSAKI Motohiro <kosaki dot motohiro at gmail dot com>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: libc-alpha <libc-alpha at sourceware dot org>
- Date: Tue, 2 Apr 2013 15:37:50 -0400
- Subject: Re: [RFC][PATCH] Initial support for C11 Annex K Bounds checking functions
- References: <5102DBFD dot 4060103 at sba-research dot org> <515ABAA3 dot 6030509 at redhat dot com>
> We need to decide if we want to check the explicit lengths against the
> compiler-inferred lengths in _FORTIFY_SOURCE mode.
>
> Errors in length calculations are sufficiently common that I think
> performing the additional check makes sense, but there might be other
> opinions.
_FORTIFY_SOURCE changes function behaviors globally. But somebody
want to avoid extra length check in fast path. Annex K makes a choice to
application developers. It not so bad. However, I know the benefit is not
much rather than code size. so this may be debatable.