From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7251 invoked by alias); 22 Jun 2009 05:34:43 -0000 Received: (qmail 7194 invoked by uid 48); 22 Jun 2009 05:34:32 -0000 Date: Mon, 22 Jun 2009 05:34:00 -0000 Message-ID: <20090622053432.7193.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/40502] [4.5 Regression] crash in cp_diagnostic_starter In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" 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: 2009-06/txt/msg01549.txt.bz2 ------- Comment #4 from pinskia at gcc dot gnu dot org 2009-06-22 05:34 ------- as witness from: In function ‘char* strncpy(char*, const char*, size_t)’, inlined from ‘void pat_read_waveheader(FILE*, WaveHeader*, int)’ at t.cc:7132:40: t.cc:1965:94: warning: call to char* __builtin___strncpy_chk(char*, const char*, long unsigned int, long unsigned int) will always overflow destination buffer If I add an obvious check for block being NULL. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40502