From owner-freebsd-current@FreeBSD.ORG Thu Dec 2 05:59:49 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E039116A4CE for ; Thu, 2 Dec 2004 05:59:49 +0000 (GMT) Received: from bache.ece.cmu.edu (BACHE.ECE.CMU.EDU [128.2.129.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA1AE43D46 for ; Thu, 2 Dec 2004 05:59:49 +0000 (GMT) (envelope-from allbery@ece.cmu.edu) Received: from [10.9.204.1] (dsl093-061-215.pit1.dsl.speakeasy.net [66.93.61.215]) by bache.ece.cmu.edu (Postfix) with ESMTP id 5B2D47B; Thu, 2 Dec 2004 00:59:48 -0500 (EST) From: "Brandon S. Allbery KF8NH" To: JINMEI Tatuya / =?UTF-8?Q?=E7=A5=9E=E6=98=8E=E9=81=94?= =?UTF-8?Q?=E5=93=89?= In-Reply-To: <1101966976.4877.16.camel@rushlight.kf8nh.com> References: <1101966976.4877.16.camel@rushlight.kf8nh.com> Content-Type: text/plain Message-Id: <1101967187.4877.19.camel@rushlight.kf8nh.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Thu, 02 Dec 2004 00:59:47 -0500 Content-Transfer-Encoding: 7bit cc: current@FreeBSD.org Subject: Re: malloc(0) returns an invalid address X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Dec 2004 05:59:50 -0000 On Thu, 2004-12-02 at 00:56, Brandon S. Allbery KF8NH wrote: > With a size of 0 it's easy to cheat: return a "magic" minimal-sized Correction (what I get for shooting off my mouth at 1am...): "minimal-sized" is meaningless in this context. -- brandon s. allbery [linux,solaris,freebsd,perl] allbery@kf8nh.com system administrator [WAY too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon univ. KF8NH