From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2961 invoked by alias); 9 Jan 2005 22:47:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 2944 invoked by uid 48); 9 Jan 2005 22:47:56 -0000 Date: Sun, 09 Jan 2005 22:47:00 -0000 Message-ID: <20050109224756.2943.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050109221816.19351.fw@deneb.enyo.de> References: <20050109221816.19351.fw@deneb.enyo.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/19351] operator new[] can return heap blocks which are too small X-Bugzilla-Reason: CC X-SW-Source: 2005-01/txt/msg01147.txt.bz2 List-Id: ------- 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