[PATCH] Implement strlcat [BZ#178]

Paul Eggert eggert@cs.ucla.edu
Fri Dec 4 19:31:00 GMT 2015


On 12/04/2015 11:22 AM, Florian Weimer wrote:
> I can add a static assert for sizeof (uintptr_t) == sizeof (size_t),
> which is closer to what we need here.

Yes, thanks, that's even better than just a comment.

> Pointer arithmetic in GCC leans towards
> signedness, and signed overflow being undefined, strange things can
> happen in the middle of the address space, close to (void *) SSIZE_MAX.

Ouch.  I didn't know that.  I'll add it to my list of things to worry 
about :-).



More information about the Libc-alpha mailing list