This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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] Implement strlcat [BZ#178]


On 12/04/2015 03:12 AM, Florian Weimer wrote:
There is no "_exactly_". The BSDs differ.
I think the behavior is the same.

No, as I mentioned elsewhere, the NetBSD iimplementation does not allow strlcpy(0, SRC, 0) whereas the FreeBSD implementation does (and this disagrees with the FreeBSD documentation where it says the destination must be a string). I haven't investigated strlcpy but I expect that it differs too.

It is a bit of a mess.

It's certainly OK to reach out to the OpenBSD and FreeBSD and NetBSD folks here, in particular as to whether applications rely on these weird corner cases. I am pretty sure they do not, and that it'd be better to make them errors.


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