Date: Thu, 29 Jun 2006 07:42:22 +0200 From: Johannes Weiner <hnazfoo@googlemail.com> To: freebsd-hackers@freebsd.org Subject: Re: Return value of malloc(0) Message-ID: <20060629054222.GA92895@leiferikson.flosken.lan> In-Reply-To: <20060628181045.GA54915@curry.mchp.siemens.de> References: <20060628181045.GA54915@curry.mchp.siemens.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <Cyph3r> jesus died from my syn's
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060629054222.GA92895>