From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5145 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: thoughts on reallocarray, explicit_bzero? Date: Tue, 20 May 2014 02:19:04 -0400 Message-ID: <20140520061904.GX507@brightrain.aerifal.cx> References: <20140519153130.GA519@muslin> <20140519154302.GN507@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1400575140 26422 80.91.229.3 (20 May 2014 08:39:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 May 2014 08:39:00 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5150-gllmg-musl=m.gmane.org@lists.openwall.com Tue May 20 10:38:54 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1WmdOQ-0001PD-AP for gllmg-musl@plane.gmane.org; Tue, 20 May 2014 08:19:18 +0200 Original-Received: (qmail 22345 invoked by uid 550); 20 May 2014 06:19:17 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 22337 invoked from network); 20 May 2014 06:19:16 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:5145 Archived-At: On Mon, May 19, 2014 at 06:19:11PM +0200, Daniel Cegiełka wrote: > 2014-05-19 17:43 GMT+02:00 Rich Felker : > > >> > >> 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. Rich