[PATCH] Fix read etc. with -D_FORTIFY_SOURCE=2

Roland McGrath roland@redhat.com
Tue Mar 1 21:34:00 GMT 2005


> read/pread/pread64/recv/recvfrom do not read operate with strings, but
> arbitrary data.  Therefore it is inappropriate to use
> __builtin_object_size (, 1) for them, they should behave like
> memcpy/memset and other memory operations rather than strcpy/fgets etc.

Quite right.  I put the change in.


Thanks,
Roland



More information about the Libc-hacker mailing list