From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 175273858D28; Wed, 21 Jun 2023 06:59:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 175273858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687330750; bh=HqMzXOEca9ZNknhUSGDJb2gFFm7EZWbxRruYz3mm4rU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=p0GYZSd/S5lvH6Qdtrq1B7wdzRfMwpKrX5+985WgPGs0AhJxiZouoFg1d6ZGR0cze q2ldLKTg3rrTw/DV5oN56h8UEUb378Hr9K22giZZHIEGZ+Ln2GPzmmEUoWSh55qyuZ o0jHr68jtnjNjF44PvWpCnrLqtUopXcSV+5Lj72A= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110333] GCC 13 -Wformat-overflow=2 should reflect real libc limits for sprintf Date: Wed, 21 Jun 2023 06:59:09 +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.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org 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: --- 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=3D110333 --- Comment #1 from Jakub Jelinek --- The 4095 comes from the C standard I think. Even latest C23 draft says in 7.23.6.1 "The number of characters that can be produced by any single conversion sha= ll be at least 4095." so it is I think a portability warning.=