[Bug c++/19351] operator new[] can return heap blocks which are too small

pinskia at physics dot uc dot edu gcc-bugzilla@gcc.gnu.org
Wed Sep 27 23:56:00 GMT 2006



------- Comment #9 from pinskia at physics dot uc dot edu  2006-09-27 23:56 -------
Subject: Re:  operator new[] can return heap blocks which are too small

> 
> 
> 
> ------- Comment #8 from geoffk at gcc dot gnu dot org  2006-09-27 23:51 -------
> Isn't this handled by -ftrapv?

No because sizeof is unsigned and -ftrapv only deals with signed types.

-- Pinski


-- 


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



More information about the Gcc-bugs mailing list