[PATCH v7] Implement strlcpy, strlcat [BZ #178]
Paul Eggert
eggert@cs.ucla.edu
Tue Jan 5 17:11:00 GMT 2016
On 01/05/2016 03:09 AM, Florian Weimer wrote:
> For example, I don't expect
>
> read (fd, ptr, SSIZE_MAX)
>
> to succeed as long as the actual number of bytes read is sufficiently
> small (and it fails with EFAULT on Linux).
I agree with your expectation. Any program playing that sort of game is
a security problem waiting to happen, and GNU/Linux is doing the right
thing here.
More information about the Libc-alpha
mailing list