From nobody Fri Apr 11 20:04:39 2025 X-Original-To: dev-commits-src-all@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 4ZZ7206qHtz5sbQ2; Fri, 11 Apr 2025 20:04:40 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZZ7206CVhz3lcm; Fri, 11 Apr 2025 20:04:40 +0000 (UTC) (envelope-from jhb@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1744401880; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=u/BTfw3TxWUAPYMXj5eGfYmyvC/OmDwNhLt5YTwbLOY=; b=Wn6LQC9o3RyC/w1gRDXVOtOr0HbD+XcM0uQmytfI+n5HpRsur9j2XjT1CoFZmCWDzG+2bh r1H2FRYKxkhk9ofMFXqsK7pvoUrmS9IyOsuVw4JoU6iQ21QFZ+ZSiWpTENYdPDuhTSvH7v gzbjusKODTBniAvp4GPmJuCvpb+QVygVT7htGo3h8A0CgpQI1gnSwqDDuxDPfpfm01k5yN j9gBIUQFD4T7O0VIJBb+WS+KlgtWrhmp+CDEme12rISZJYJ08pXEFg5KB7ig8jVzjGPg/o YtMJKIg1mT7faEMtDkqEX7ojYiURjQTRfPfhEdeATBy0UmdSudGeQ4vEnyzPKQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1744401880; a=rsa-sha256; cv=none; b=U+hoF8xxpAhM+Ba2xvKP+4+45k/3viHaXMHqYS/ihtCPZkIoODazvC0dZOIKnl3e+HyS1a 3YeGLDjNeY+Vy7ZSr6dB2c34/H1+F87GOoiiX/We9UQ/4gyNf4tOBtTq49tGddS1osWEu2 gtfLJh6mF1ZJ8h/7o6I/jAiC1pDaFQt8VlM0mw4fB/9mQ9JlM4YqoY0HjJ6gJaWNLm3+83 gytbVxHa93kdmLN4zs66/3NhwFJXDyM67+42S30uJWnbcXQYzGYv/Bd7VxKNPHXWNhAytm JX8kXcaRVIz57I3qyfxiqD8LHbx5IlTutyes3NfvkM14aAd4+u7oeH70ZZjfLg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1744401880; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=u/BTfw3TxWUAPYMXj5eGfYmyvC/OmDwNhLt5YTwbLOY=; b=gIAaxe6IfjZBozLjpiUP6nOD94QM9SvUoctdLGPZ4360TZkZVeWUQAXqSDyn6FnZjSFtVG KlDoMw3FTtyxifY2+7Bthn1sN7on97lmDal1mT13ncRikA7JRfZU1AFfvt5iFv4OzrprMX 86OAgX5nOg6MIAgX9IGpU5Y3MI+Perd+0TcU+0LlGiWvlT7CJrAHdxONKY8l3WsQQ4ff2k Mh2sY/Yp1UDj/fi1dcs3C5RE1Stz4D8aizPB/rMTNJLdm6pZEMBV5mjLui2tmSYChZZXGj 6c5DnVT1Vck80v5QTCESaDzNJlrBJg/V1ZqrcZI8in/pnN4HPzywr85nh5fP8w== Received: from [IPV6:2601:5c0:4200:b830:15f7:da33:fe33:afbf] (unknown [IPv6:2601:5c0:4200:b830:15f7:da33:fe33:afbf]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 4ZZ7204HRLzPkl; Fri, 11 Apr 2025 20:04:40 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Message-ID: <675ab160-9f0e-4568-8f69-0c3433cf6ff7@FreeBSD.org> Date: Fri, 11 Apr 2025 16:04:39 -0400 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: git: faae895fec65 - main - fusefs tests: Use memcpy to work around a -Wstrlcpy-strlcast-size warning Content-Language: en-US From: John Baldwin To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org References: <202504111916.53BJGeAH035815@gitrepo.freebsd.org> In-Reply-To: <202504111916.53BJGeAH035815@gitrepo.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/11/25 15:16, John Baldwin wrote: > The branch main has been updated by jhb: > > URL: https://cgit.FreeBSD.org/src/commit/?id=faae895fec6571242ae05b11bc7eba0dff83fa49 > > commit faae895fec6571242ae05b11bc7eba0dff83fa49 > Author: John Baldwin > AuthorDate: 2025-04-11 19:12:58 +0000 > Commit: John Baldwin > CommitDate: 2025-04-11 19:12:58 +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 Apologies for the breakage. I have no idea why I did not see this failure earlier. I had done multiple buildworld + tinderboxes and even requested an exp-run from ports and none of these had tripped over this fuse test, and the fuse test code hasn't changed in several years. -- John Baldwin