[Bug c++/19351] operator new[] can return heap blocks which are too small
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Jan 9 22:47:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list