bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] inttostr.h: add compile-time buffer overrun checks


From: Paul Eggert
Subject: Re: [PATCH] inttostr.h: add compile-time buffer overrun checks
Date: Mon, 18 Oct 2010 12:50:36 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.12) Gecko/20100915 Thunderbird/3.0.8

On 10/17/10 12:58, Bruno Haible wrote:
> +/* Define auxiliary functions for bounds checking of FUNC.
> +   The FUNC_chk_warn function behaves like the FUNC_chk function but emits a

My kneejerk reaction is that this is way overkill for inttostr.
Also, I've had problems with __builtin_object_size not behaving
as documented for GCC: it is sometimes not allowed in a constant
expression, even though it always returns a constant.  I suspect
Jim's original proposal is a better way to go.  I'll look into
one or two possible improvements that don't involve so many
changes to the code.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]