From nobody Mon Nov 23 22:07:24 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4jYKmr2xwZz71h6j for ; Mon, 23 Nov 2026 22:07:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jYKmr2TH2z3Jll for ; Mon, 23 Nov 2026 22:07:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795471644; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KTVQVqGS23LxcnN23dMqiyEsYkAhQ0aWJ9IiQG4uv3Q=; b=pH/ieXoDBLpz7L+SDNmW722aP6OE5ITrhnXJLdyNQxyo+bScPIRjdL8bM6JMhY9BAGLd8J 3leYnmpamqruVH4zYU2+/pwDPWs2b9HvjsY6ntQPveq9ILfpB91KQy3yq5hUUluADSOppc bKBVLV6oZSYl374vS+lqXeDW+IS1F4ybYwRKZ0+Xbsqn3HdMmQqlV/8fm76PcpfAGlfh3O 0vFNSOqvFq0yG7MovN8VSKDzH/FhOnBbJokHGqsXOBEwxntcH3ywE81bGcyOuurw/oB05O BxqLLMZPB8v0BNRtV4oQBhfLpp093KLtVC2Mtqx8IwpzdKXhAL3hQhFSq9SnzA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1795471644; b=DUrOqQXNORUZLB0x8EgTxRseVbHokvrPS9myU+3Snl6H1vpKIhcO3BqTvkjDABPHsCJzMQ a+mNdW27trGlEV4U0JOBgbqiGWiwdXoeh6azjGdv3Jl0NDQLQSE3zqYt8Zr+rAWwzbPuQy z8saaUwHdSOC/yj1gc8zWOn0ZxznD279U0dnYlYqn+4xBbs/CMhEE3Fk0Rbq1Ueg+gkayu xMzv8gjKeJpo/UWA0fmxaMp1s940ubgUeWepkEc0ICB0Io+qdOMNUOgITGegh7xoWnAo8E z9EG+gkWDGpGxZddQ84E/kM13vzvrJaRsdWfLuEkymWqqJjleOALfEW4KgOipQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795471644; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KTVQVqGS23LxcnN23dMqiyEsYkAhQ0aWJ9IiQG4uv3Q=; b=vVUc7L5s4FEA+U6fmFUxrHPP8xl3chWa5zESjhXrlimmCBqjmjZyZWL0lB1tA72gQvtxlD R9pyQ1EGO1YWl6W9gnCiDSMArQQanIIhCMdjtkY90yrgkp/Gae4w9xDok0jTiXHtHPznsm zTjhrQ0Qhn/XydvmXbfF5PBbt7rSqQFTFPKz0+ME3zh6lvSwhBxI5lB2+r5jsMABaae/I5 KNeAWMvrgQX4xJ6zwaP9eBUO/oPiUPh8Ku6YCe8xL+zUYVRp5UCxJCTjOuj5Yq05r0RSf3 TO0VoK66MWdqbWFd+nEreyFxB6vfEwUzT56dXkmfoET1B+vRGQawkWa7RdqcYA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jYKmr27t6z18MD for ; Mon, 23 Nov 2026 22:07:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1c949 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 23 Nov 2026 22:07:24 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: John Baldwin From: Enji Cooper Subject: git: 905120141436 - stable/14 - fusefs tests: Use memcpy to work around a -Wstrlcpy-strlcast-size warning List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches X-BeenThere: dev-commits-src-branches@freebsd.org List-Id: Commits to the stable branches of the FreeBSD src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ngie X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 9051201414360ecd0fafb1637a71b834c4151cdd Auto-Submitted: auto-generated Date: Mon, 23 Nov 2026 22:07:24 +0000 Message-Id: <6b04b91c.1c949.67579895@gitrepo.freebsd.org> The branch stable/14 has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=9051201414360ecd0fafb1637a71b834c4151cdd commit 9051201414360ecd0fafb1637a71b834c4151cdd Author: John Baldwin AuthorDate: 2025-04-11 19:12:58 +0000 Commit: Enji Cooper CommitDate: 2026-11-23 22:07:16 +0000 fusefs tests: Use memcpy to work around a -Wstrlcpy-strlcast-size warning tests/sys/fs/fusefs/xattr.cc:572:50: error: size argument in 'strlcpy' call appears to be size of the source; expected the size of the destination [-Werror,-Wstrlcpy-strlcat-size] 572 | strlcpy((char*)out.body.bytes, attrs1, sizeof(attrs1)); | ~~~~~~~^~~~~~~ The warning is correct in that the size is the size of the source, but that is intended in this case. Use memcpy() instead of strlcpy() to match the same code in the size_only_race_smaller test above. Differential Revision: https://reviews.freebsd.org/D49786 (cherry picked from commit faae895fec6571242ae05b11bc7eba0dff83fa49) --- tests/sys/fs/fusefs/xattr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sys/fs/fusefs/xattr.cc b/tests/sys/fs/fusefs/xattr.cc index a348315265c2..b863bdbc06e6 100644 --- a/tests/sys/fs/fusefs/xattr.cc +++ b/tests/sys/fs/fusefs/xattr.cc @@ -642,7 +642,7 @@ TEST_F(Listxattr, size_only_race_smaller) })); expect_listxattr(ino, sizeof(attrs0), ReturnImmediate([&](auto in __unused, auto& out) { - strlcpy((char*)out.body.bytes, attrs1, sizeof(attrs1)); + memcpy((char*)out.body.bytes, attrs1, sizeof(attrs1)); out.header.len = sizeof(fuse_out_header) + sizeof(attrs1); })