From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F16483858C36; Wed, 28 Feb 2024 13:35:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F16483858C36 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1709127350; bh=3mmgJTirF1BEZtfUYObQGCJaoazPkTYWIFxfyc10NeM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=j0lCmRSke8jbcmouAv1lJRN9GasRUhiNttJ/fHcKGDqj6lsLgLgvYZ9GgL2hQq1Po mO2O3schONhExPbbmG2xYo8/LLPL11vVUf82y44+UMPuVmjhLMGy5HomcOtd0Ntx0u HSYl+o59IG61ClQYah0meI99k8EOLe2+Zy6x4l0A= From: "cvs-commit at gcc dot gnu.org" To: glibc-bugs@sourceware.org Subject: [Bug libc/31383] _FORTIFY_SOURCE=3 and __fortified_attr_access vs size of 0 and zero size types Date: Wed, 28 Feb 2024 13:35:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: siddhesh at sourceware dot 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31383 --- Comment #4 from Sourceware Commits --- The master branch has been updated by Siddhesh Poyarekar : https://sourceware.org/git/gitweb.cgi?p=3Dglibc.git;h=3Dbf9688e623262c5fa9f= 91e4de0e84db45025076f commit bf9688e623262c5fa9f91e4de0e84db45025076f Author: Siddhesh Poyarekar Date: Thu Feb 15 07:40:56 2024 -0500 cdefs: Drop access attribute for _FORTIFY_SOURCE=3D3 (BZ #31383) When passed a pointer to a zero-sized struct, the access attribute without the third argument misleads -Wstringop-overflow diagnostics to think that a function is writing 1 byte into the zero-sized structs. The attribute doesn't add that much value in this context, so drop it completely for _FORTIFY_SOURCE=3D3. Resolves: BZ #31383 Signed-off-by: Siddhesh Poyarekar Reviewed-by: Adhemerval Zanella --=20 You are receiving this mail because: You are on the CC list for the bug.=