Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 20 May 2014 17:50:13 +0200
From: Daniel Cegiełka <daniel.cegielka@...il.com>
To: musl@...ts.openwall.com
Subject: Re: thoughts on reallocarray, explicit_bzero?

2014-05-20 8:19 GMT+02:00 Rich Felker <dalias@...c.org>:
> On Mon, May 19, 2014 at 06:19:11PM +0200, Daniel Cegiełka wrote:
>> 2014-05-19 17:43 GMT+02:00 Rich Felker <dalias@...c.org>:
>>
>> >>
>> >> Should musl provide reallocarray()?
>> >
>> > I don't think so; there's no precedent for it yet except OpenBSD.
>> > LibreSSL should just add a fallback implementation (trivial to write
>> > as a wrapper to realloc) for all non-OpenBSD systems that lack it.
>>
>> The problem is that these functions are now used everywhere in
>> openbsd's repo., so it's not just LibreSSL but ed, pax, mandoc, m4,
>> (open)ssh, (open)smtpd, etc.
>
> It looks like glibc is willing to add reallocarray, so that makes at
> least two systems now. If there's demand maybe we should add it.

If glibc will support this function, then we can also in musl. These
functions will be distributed together with openssh, libressl, mandoc
or pax etc., so I think it is better to have it well done in libc
(like strlcat and strlcpy).

Daniel

>
> Rich

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.