-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On 3/28/11 10:37 AM, Richard Guenther wrote:
>> On Mon, Mar 28, 2011 at 3:54 PM, Mark Eklund <mekl...@cisco.com> wrote:

<snip>

>> 
>> Again any feedback that would help point me in the right direction would
>> be appreciated.
>> 
> What do you want to do with the information from __builtin_object_size?
> Note that it was invented for a single special reason, it is probably not
> suitable for anything else (and its somewhat fragile implementation shouldn't
> be complicated by other usages).

I use FORTIFY_SOURCE with a USE_FORTIFY_LEVEL of 2
and was surprised that the below code allowed
writing into fu[4][0].  I expected that at a
level of 1, but not 2.

#include <string.h>

int bar ()
{
    char fu[10][10];
    strcpy(fu[3], "ten counts");
    return 0;
}

=mark

> 
>> Richard.
> 
> Thanks,
> 
> =mark
> 
>>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2TPHoACgkQQ0N2P/sOd5jAcgCffteA2GdpVSgJNEjspiWJ943G
whkAni8sqeumrnOvizMDorW/ZkveNV+4
=GKWj
-----END PGP SIGNATURE-----

Reply via email to