From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2E0F73858D1E; Tue, 24 Jan 2023 21:16:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E0F73858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674595000; bh=D+D9UpW2UHkRAHKhSiwp6aERW63NXdKFtty6iHVoCL0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Bv9AJ5fuqdn0m5JzxIAnT7YJ3LQgIjBg8DZd9K3OWOoY5FKSWOpZYYkMHE5O1Tpeh oKhhNLxTpEACVZ8msIdD5XZIpxzlkSXz3bLmEER8kaob1z646NpHTmdkFz1vAjLKgZ pec676Ci0f+dSHFejikD/YwjZl+wPmME1ph9AOUs= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/108518] Format-overflow warning using `*.s` directive with null but zero-length string Date: Tue, 24 Jan 2023 21:16:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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: bug_status resolution 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=3D108518 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski --- I think it is still undefined if the argument is null even if the length of= 0 is supplied from my reading of the standard: If no l length modifier is present, the argument shall be a pointer to the initial element of an array of character type. If the precision is specified, no more than that many bytes are written.=