From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9395 invoked by alias); 23 Mar 2007 15:09:58 -0000 Received: (qmail 9364 invoked by uid 48); 23 Mar 2007 15:09:45 -0000 Date: Fri, 23 Mar 2007 15:09:00 -0000 Message-ID: <20070323150945.9363.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/19351] operator new[] can return heap blocks which are too small In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "schwab at suse dot de" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-03/txt/msg02236.txt.bz2 ------- Comment #11 from schwab at suse dot de 2007-03-23 15:09 ------- "The calloc function allocates space for an array of nmemb objects, each of whose size is size." There is no mentioning of overflow, but the allocated space must surely be big enough to hold the array, and calloc shall fail if it cannot fulfill the request. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19351