Date: Wed, 23 Jul 2003 23:44:11 -0400 From: Mike Tancsa <mike@sentex.net> To: Kris Kennaway <kris@obsecurity.org> Cc: Gabor <gabor@vmunix.com> Subject: Re: malloc does not return null when out of memory Message-ID: <5.2.0.9.0.20030723234250.052821e8@192.168.0.12> In-Reply-To: <20030723201536.A22031@citusc.usc.edu> References: <20030723173427.GA72876@vmunix.com> <20030723173427.GA72876@vmunix.com>
next in thread | previous in thread | raw e-mail | index | archive | help
At 08:15 PM 7/23/2003 -0700, Kris Kennaway wrote: >On Wed, Jul 23, 2003 at 01:34:27PM -0400, Gabor wrote: > > > Here is the tail end of the output. It dies when trying to poke at > > the memory using memset. If I just malloc without the memset, it > > never even dies. > >Ah, the annual "memory overcommit" thread. I thought we were overdue >for one. But why does the man page for malloc (3) say, If malloc() fails, a NULL pointer is returned. ---Mike -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet since 1994 www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.2.0.9.0.20030723234250.052821e8>