From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2602 Path: news.gmane.org!not-for-mail From: Rob Landley Newsgroups: gmane.linux.lib.musl.general Subject: Re: malloc(0) behaviour Date: Tue, 15 Jan 2013 06:52:06 -0600 Message-ID: <1358254326.32505.25@driftwood> References: <20130114180533.GP20323@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; DelSp=Yes; Format=Flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1358254340 17426 80.91.229.3 (15 Jan 2013 12:52:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Jan 2013 12:52:20 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2603-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jan 15 13:52:38 2013 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 1Tv60L-0003qL-IJ for gllmg-musl@plane.gmane.org; Tue, 15 Jan 2013 13:52:37 +0100 Original-Received: (qmail 1823 invoked by uid 550); 15 Jan 2013 12:52:20 -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 1815 invoked from network); 15 Jan 2013 12:52:20 -0000 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:date:from:subject:to:references:in-reply-to:x-mailer :message-id:mime-version:content-type:content-disposition :content-transfer-encoding:x-gm-message-state; bh=EWvylL9NggtZ5ovRRVG120WANiO27+EU4ZExg+cibds=; b=RVW4VVFC8fII3PnIjdzg3EqpFZ79wi9f9in5xVF24NxGBQRMdRU5Ia6BRrz5Hu1HB2 gIAnLLTBiR7IsfrYNOtZXFQS+eDZECccEDVJAmP939G/DfWCg4AduQD/2Zyh8fxOFWHK Qze6skQyGsQhj/WbohqhFqQFKhRH+1l7H4kkXeMJMhM1qQBoHveppkCt8PRNyDtjZfIf oHnBjlNUJfPnWtSj4IRF3wKZ5DuJcEpk9dlt44JA6dUwK/Kz4by52O0CPNMg8ahZP7ec 3Kf3foV/UVAQUI7VKYLTU09EWr97PvT7+83m/uDeCIrp06rzQmRksrr1ulmCDJ2ba+Ey buXw== X-Received: by 10.182.31.43 with SMTP id x11mr65731082obh.71.1358254328376; Tue, 15 Jan 2013 04:52:08 -0800 (PST) In-Reply-To: (from igmar@palsenberg.com on Tue Jan 15 02:31:24 2013) X-Mailer: Balsa 2.4.11 Content-Disposition: inline X-Gm-Message-State: ALoCoQmChOPG4mgYLInF8wIXhaQpPfrGl5tg/mGJ40FaPQfkaezPhlZ8CnwmLvgRDqarDgJDDXVN Xref: news.gmane.org gmane.linux.lib.musl.general:2602 Archived-At: On 01/15/2013 02:31:24 AM, Igmar Palsenberg wrote: > > http://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_400.htm > > http://austingroupbugs.net/view.php?id=3D400 > > http://sourceware.org/bugzilla/show_bug.cgi?id=3D12547 >=20 > While the above is clear to me, returning a pointer that can't hold =20 > anything just > seems wrong to me. Returning failure from an allocation that can't _not_ be satisfied =20 seems wrong to me. Rob=