From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5146 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Daniel_Cegie=C5=82ka?= Newsgroups: gmane.linux.lib.musl.general Subject: Re: thoughts on reallocarray, explicit_bzero? Date: Tue, 20 May 2014 17:50:13 +0200 Message-ID: References: <20140519153130.GA519@muslin> <20140519154302.GN507@brightrain.aerifal.cx> <20140520061904.GX507@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: quoted-printable X-Trace: ger.gmane.org 1400601055 23910 80.91.229.3 (20 May 2014 15:50:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 May 2014 15:50:55 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5151-gllmg-musl=m.gmane.org@lists.openwall.com Tue May 20 17:50:49 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 1WmmJT-00078f-H7 for gllmg-musl@plane.gmane.org; Tue, 20 May 2014 17:50:47 +0200 Original-Received: (qmail 5322 invoked by uid 550); 20 May 2014 15:50:46 -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 5314 invoked from network); 20 May 2014 15:50:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=bSS2kuG+KHXJpzQB6V/FNnVmi9yf5+v8bjGuszH7PxU=; b=DCT/XhEA6GlELIU3iIpqw4pXnHAsUPEYf+OtPvpNGFI6OtZ1bj1x2Jlmm1iTZ25r50 m1kHtKiMMx8rRrEA3T7JeABHFtL0uvRBs2KXhvE7gwA5L+LeCSBLRCeFFZjiZ8GWG8v6 f1fZpvXhnvqJHmPZNGrw2aoQXyjeEQI6agI77t88FZ22YxbG9lE1kR/GTCBBM7oi6R+K Uq0yyCbcpUqVLXka2BimurPY13ZfhrLgYLVGwclT7BACWiLMGWO9j73xaEM48dnGAxw5 BsJWBk8m/YzosRQSeZzghTkpHMS9+CuiG+9Zype5NS9nmrBtAslnGlVJXvebnZbWPRqO 6RGQ== X-Received: by 10.224.71.145 with SMTP id h17mr30406443qaj.74.1400601034015; Tue, 20 May 2014 08:50:34 -0700 (PDT) In-Reply-To: <20140520061904.GX507@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:5146 Archived-At: 2014-05-20 8:19 GMT+02:00 Rich Felker : > On Mon, May 19, 2014 at 06:19:11PM +0200, Daniel Cegie=C5=82ka 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. 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