[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:25:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-09 22:25 -------
This is undefined behavor. 

Really there is nothing we can do, just think about this again, the programmer should catch this when 
they read in the length.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WONTFIX


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19351



More information about the Gcc-bugs mailing list