From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 29 05:41:28 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 645BE16A403 for ; Thu, 29 Jun 2006 05:41:28 +0000 (UTC) (envelope-from hnazfoo@googlemail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id B2FC043D80 for ; Thu, 29 Jun 2006 05:41:27 +0000 (GMT) (envelope-from hnazfoo@googlemail.com) Received: by nf-out-0910.google.com with SMTP id c29so23223nfb for ; Wed, 28 Jun 2006 22:41:26 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=googlemail.com; h=received:date:from:to:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=S+ZtzC2Fy2lTnrXEquBcBfjaPOf5VRu0CthakyCrgELHGGnooDdeCS/sjMUXyr7yXOEAMkL6H5VfYhVxvl/eo2/Finp9BQBffl5pkeMemIt/MtUz8Jybh4/txTfLLKOxd5SrTWJmeasuwS7Dbh1hamWE+afdhQjxsfqTK0mqwtc= Received: by 10.49.12.1 with SMTP id p1mr65546nfi; Wed, 28 Jun 2006 22:41:26 -0700 (PDT) Received: from localhost ( [217.65.22.188]) by mx.gmail.com with ESMTP id b1sm110602nfe.2006.06.28.22.41.21; Wed, 28 Jun 2006 22:41:25 -0700 (PDT) Date: Thu, 29 Jun 2006 07:42:22 +0200 From: Johannes Weiner To: freebsd-hackers@freebsd.org Message-ID: <20060629054222.GA92895@leiferikson.flosken.lan> Mail-Followup-To: freebsd-hackers@freebsd.org References: <20060628181045.GA54915@curry.mchp.siemens.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060628181045.GA54915@curry.mchp.siemens.de> User-Agent: mutt-ng/devel-r804 (FreeBSD) Subject: Re: Return value of malloc(0) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2006 05:41:28 -0000 Hi, On Wed, Jun 28, 2006 at 08:10:45PM +0200, Andre Albsmeier wrote: > "If you use malloc(0) and are crazy enough to access the 'allocated' > memory we give you a SIGSEV to show you how dumb you are :-)". They should check the return value of malloc() in any case for successful allocation.. shouldn't they? -- Quits: JESUS (adam@rootdown.net): Ping timeout jesus died from my syn's