From nobody Tue Oct 04 17:06:18 2022 X-Original-To: dev-commits-src-main@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 4Mhkcp6SsKz4fGnp; Tue, 4 Oct 2022 17:06:18 +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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mhkcp4Q0cz4Cx5; Tue, 4 Oct 2022 17:06:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664903178; 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; bh=k84BzfTeRxk+CX6vJPShxY1sr7FQA/MJ0/WBtpqu0gg=; b=u8tFMyEuD1eDyvHyxDErH1qxz64QKBDaz2LmjksRcZqCoKdwy/PRdbM1wfpBrV805WmGSP PVjawOZUoAls5eO3Cjuf+l4Xn6FCjTV0y0+8l/eVqy+986GhIhW90t1FeZuwuk2DZnDsi0 K6aCMyFWQ99geD5ByLO2wgUnfSFw4hbyuMrNcW2SBn313mEgT2tzBOrwN6ExKIe7Af51R5 /mep0sCyRCeNKiUYHK0pWawFVppSr4TvFTU45D87NJhtawD6C2DjJIDHPHVcCUR6V2ea2e r1odwwkLSHY/pz6XUP4KtYZE+f5hwm7CbEEz6stQhDOQFBqDA2hBiUAsHi/g7w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Mhkcp3WXRzdMK; Tue, 4 Oct 2022 17:06:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 294H6Ipu099385; Tue, 4 Oct 2022 17:06:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 294H6IQF099384; Tue, 4 Oct 2022 17:06:18 GMT (envelope-from git) Date: Tue, 4 Oct 2022 17:06:18 GMT Message-Id: <202210041706.294H6IQF099384@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: cba2fa7c5b5a - main - makefs: Add a cast to placate static analyzers List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cba2fa7c5b5ac5738907cc1603cef2666d5b109d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664903178; 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; bh=k84BzfTeRxk+CX6vJPShxY1sr7FQA/MJ0/WBtpqu0gg=; b=QxBYStaVFYlewQRsNxFKxtR2RSWUnp5DQlZCLv5+2kSBl2OfpUwMQZXI7q9eam33W4fcLt co691hkrhJ0wYE1Ub259XlEolNtEOgYyplNsHuY6hykyzbroGK4vWqBbBaTBE5vqzJ00qM c+bo7iWSS60aREhSjEgALef25+r0gtpj58qJmMqO++yvbYm0Fo3iUF1qjSZyfZL/gb0rlQ VWMbllM7os22bFcxgg500ACiWGFjkzqETby38eoPGWFM7VZLubf+L8JIYPs7+4VgoKhIdz sED/AjpoZGf51cRCNUq/rN3ub463q3E/WTQiS8hffn7TW0AUc7Y6oCcxtfazNA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664903178; a=rsa-sha256; cv=none; b=atK8BwBxkpjmIhkEgGZWMGcDHuYS+z000hcVdscjXJ3WMeBv/R/vwUf2zd+k7NUrQ03lqx mBirilF1xKit54TexBBbO+52tRVsuP1K4URMdoTIX1qIkQYNmm/ltWO3GJZUHbfHrK3C19 qeW3LmONmcoAncYPRahq+biiIlM2bzlI7BmtbkGl1BMbhBNuz+Ldf+hF0ZhotLUErt0hu4 3UkuSFuAixLDZQi/kK8FsWNw5UP5D0gC8doJRfASSK4aS80Izug3O71xem+8BxioJKXhV1 VQD2qbO4oMB4UN/ZB/SRyK9OgphKqB9iFv819vi75oqerHlpTS+lLap4sAryYQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=cba2fa7c5b5ac5738907cc1603cef2666d5b109d commit cba2fa7c5b5ac5738907cc1603cef2666d5b109d Author: Mark Johnston AuthorDate: 2022-10-04 16:50:13 +0000 Commit: Mark Johnston CommitDate: 2022-10-04 17:05:54 +0000 makefs: Add a cast to placate static analyzers "prefixlen" will always be smaller than 32 but adding a cast is harmless. Reported by: Coverity --- usr.sbin/makefs/zfs/zap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/makefs/zfs/zap.c b/usr.sbin/makefs/zfs/zap.c index 0bcc77d1aca0..12183158c675 100644 --- a/usr.sbin/makefs/zfs/zap.c +++ b/usr.sbin/makefs/zfs/zap.c @@ -387,7 +387,7 @@ zap_fat_write(zfs_opt_t *zfs, zfs_zap_t *zap) * header. */ prefixlen = zap_fat_write_prefixlen(zap, &l); - lblkcnt = 1 << prefixlen; + lblkcnt = (uint64_t)1 << prefixlen; leafblks = ecalloc(lblkcnt, blksz); for (unsigned int li = 0; li < lblkcnt; li++) { l.l_phys = (zap_leaf_phys_t *)(leafblks + li * blksz);