Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jul 2003 00:09:36 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        Mike Tancsa <mike@sentex.net>
Cc:        Kris Kennaway <kris@obsecurity.org>
Subject:   Re: malloc does not return null when out of memory
Message-ID:  <20030724070936.GA16762@rot13.obsecurity.org>
In-Reply-To: <5.2.0.9.0.20030723234250.052821e8@192.168.0.12>
References:  <20030723173427.GA72876@vmunix.com> <20030723173427.GA72876@vmunix.com> <5.2.0.9.0.20030723234250.052821e8@192.168.0.12>

next in thread | previous in thread | raw e-mail | index | archive | help

--+QahgC5+KEYLbs62
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jul 23, 2003 at 11:44:11PM -0400, Mike Tancsa wrote:
> 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.
>=20
>=20
> But why does the man page for malloc (3) say,
>=20
>     If malloc() fails, a NULL pointer is returned.

Words fail me.

Kris

--+QahgC5+KEYLbs62
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE/H4YwWry0BWjoQKURAprjAJwJSPTpVGWuQ/ogsKX5pcxhGd3rMACfTji2
XzkCbfFRSeaUr49gbieOasw=
=tW8v
-----END PGP SIGNATURE-----

--+QahgC5+KEYLbs62--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030724070936.GA16762>