[Bug c++/19351] operator new[] can return heap blocks which are too small
fw at deneb dot enyo dot de
gcc-bugzilla@gcc.gnu.org
Fri Mar 23 15:23:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list