This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR optimization/11980: Fix strcat builtin on x86_64.


On Wed, Sep 03, 2003 at 02:14:31PM -0600, Roger Sayle wrote:
> Are you sure?

Yes.

> I'm uncomfortable that the x86_64-freebsd5.1 port
> is obviously quite functional, able to bootstrap the GCC compiler
> and run the testsuite, yet the only place in the code that is
> "fragile" to size_t being smaller than a pointer is the recently
> added strcat built-in?  Odd.

It's wrong because they're malloc would no doubt otherwise be
quite happy in allocating a 5GB object.

It's most definitely a bug in their libc and/or gcc port.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]