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: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jan 2005 22:47:56 -0000
- Subject: [Bug c++/19351] operator new[] can return heap blocks which are too small
- References: <20050109221816.19351.fw@deneb.enyo.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-09 22:47 -------
I would get a clearification from the standards comittee if I were you. multiplying a large unsigned
number by 16 and getting an overflow is werid case but again, the developer should be checking the
size for reality, if they don't it can cause other problems like a seg fault as malloc on linux does not
return null when running out of memory.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19351