This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19351] operator new[] can return heap blocks which are too small
- From: "fw at deneb dot enyo dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Mar 2007 15:23:27 -0000
- Subject: [Bug c++/19351] operator new[] can return heap blocks which are too small
- References: <bug-19351-192@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #12 from fw at deneb dot enyo dot de 2007-03-23 15:23 -------
Subject: Re: operator new[] can return heap blocks which are too small
* mmitchel at gcc dot gnu dot org:
> What does the C standard say about calloc? That's a similar case; the
> multiplication is in calloc. Does it have to report an error?
My interpretation is that it must return NULL. (This was fixed in GNU
libc years ago.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19351