This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: |new []| better not overflow and crash with g++
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: Georgi Guninski <guninski at guninski dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 25 Nov 2008 14:34:54 +0100
- Subject: Re: |new []| better not overflow and crash with g++
- References: <20081125092334.GC7406@sivokote.iziade.m$>
* Georgi Guninski:
> once upon a time |calloc(BIG,BIG)| silently overflowed, now it is fixed.
>
> nowadays |new int[bignumber]| overflows as in:
This is PR19351, first reported in 2002 (along with the calloc issue).