From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1D1933858D37; Mon, 18 Mar 2024 09:37:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1D1933858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1710754659; bh=5WwBtkRwGCoXnluytnMJqA8TQtcRX+s0/FE6IAaSBWI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=CWlLzlQhMQSA52tKmoH8pRNtmmOC5asi7yMvUtqlLZQMJ+yErRIuh3YIRUgRGjFsv O4YGPOHfHKzpu1Z4VboGWFSwn4JPReaBZTzCYophVVF+5Ssz8/pZ6submiChMNrF34 55AzrP+yH5HuSTUxc8XonFnOElw8R68HKszgZnFM= From: "torsten.mandel at sap dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/114374] [12/13/14 Regression] snprintf Wformat-truncation Date: Mon, 18 Mar 2024 09:37:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: torsten.mandel at sap dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114374 --- Comment #4 from Torsten Mandel --- E.g.: #include "stdio.h" #include int main() { char buf[11]; int loop(1); do { snprintf(buf,sizeof(buf),"%d",loop++); } while(loop<10); }=