From nobody Thu Mar 07 08:16:23 2024 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 4Tr2FM5PG0z5D120; Thu, 7 Mar 2024 08:16:23 +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 4Tr2FM4rQFz4Lvw; Thu, 7 Mar 2024 08:16:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709799383; 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=n0T3PnWuEM7ygBo+ziqeNpnctZWSzmr48PzN0T4O8oY=; b=IxHuy7LG6E0tSPV9G5176XF/bTeWzAj7oyV/7bTe6yEgJShtaS1qzQ9l7cuiO4HHbGOZBP GQ3f2U+lTIq9vXKNo+XYCpaRW/Wz1QgugSC6rSqXHzxanrtk2GlgKcwHb7VnAmPwq2uCo+ 5zMgz0+XA8ujH8VqsSE7NyF7nEwZA6wHprBSpjIu9KQuERKJTBEH1p7tNePmPTob6VbYnW Zxv7DL8jME9SgD78qr26l/8cI1MgN6+bUoLNuJ6GQoOhCJa/5+kATHjTEs9011pgqhjzvS SALmrgfjnZZFaVBm4WNGGiIOiBYSxSskuAHY2ludf0AxWuTZikpNJ9jyl8ptnw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709799383; a=rsa-sha256; cv=none; b=UVLdJr4t4Cn/50hn9UWfjtFN2fw3RYMbxPKFcXwYM+sDMlSrf8wxZi0oO2bFsaFkmbA7pc 086Thp6WizA9F46AzD0aTK5ZHwZqdkwYVEN2UUPYNnH2iKtpJ8/l/nioRGTTleKm0miuuO Hq6WvjeP81vBux/EdiCpQCyCIMwCjgphCVWuk7+lY2ZioywD01egInJHpqKXqvzrtHxVNC Z8mPx+8B8J57V/fYoJHCcScbpIb7MCQ8K7JliMkEe98TZszV+7poBxhSTx4cAHAXla+soh DK0lozo4nJkAydcCFWrGtPB/6n4ChyrDkMNLqDRokJ1tPB0YAv7romsSTXKnLg== 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=1709799383; 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=n0T3PnWuEM7ygBo+ziqeNpnctZWSzmr48PzN0T4O8oY=; b=spkv1a8XJlMxpxXG5mFwgunmrdX06Q/QnkLHUX31F6FzniczEK6w35Ux/6MRWeKDG0Z3LU KvAYMSki4Qjks6Nw0KvTBSSLZqqHBrUXRpKESbrwgCjH/XULjBtiAHk9Ng1gVyDTGYScvk AyJtFs6sQ1Ce6rl6QE0xeMl8ODRufCk4YTqznE2SnKaBMT+q/3FP4/ILTuQ9Ppy4yAxviT k8YHKTxw2lPq2cq6dONOABRvq8Xy4rz39HAcASNLx3noGaun1noBp59UKNL5hNh8QVlMEO eanjgEqJUC8uCsEi7kXHV078kgZ/WN2OHve/nz7Oh8zNL8bxuWAb7YnpQQx55Q== 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 4Tr2FM4RKLzRWL; Thu, 7 Mar 2024 08:16:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 4278GN5m031812; Thu, 7 Mar 2024 08:16:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4278GNgU031809; Thu, 7 Mar 2024 08:16:23 GMT (envelope-from git) Date: Thu, 7 Mar 2024 08:16:23 GMT Message-Id: <202403070816.4278GNgU031809@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: cbddb2f02c76 - main - tarfs: Fix checksum on 32-bit platforms. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cbddb2f02c7687d1039abcffd931e94e481c11a5 Auto-Submitted: auto-generated The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=cbddb2f02c7687d1039abcffd931e94e481c11a5 commit cbddb2f02c7687d1039abcffd931e94e481c11a5 Author: Dag-Erling Smørgrav AuthorDate: 2024-03-07 08:15:54 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2024-03-07 08:15:54 +0000 tarfs: Fix checksum on 32-bit platforms. MFC after: 3 days Fixes: b56872332e47786afc09515a4daaf1388da4d73c Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D44261 --- sys/fs/tarfs/tarfs_vfsops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/fs/tarfs/tarfs_vfsops.c b/sys/fs/tarfs/tarfs_vfsops.c index ce896c5841c0..d1af7070e706 100644 --- a/sys/fs/tarfs/tarfs_vfsops.c +++ b/sys/fs/tarfs/tarfs_vfsops.c @@ -205,7 +205,7 @@ static boolean_t tarfs_checksum(struct ustar_header *hdrp) { const unsigned char *ptr; - unsigned long checksum, hdrsum; + int64_t checksum, hdrsum; if (tarfs_str2int64(hdrp->checksum, sizeof(hdrp->checksum), &hdrsum) != 0) { TARFS_DPF(CHECKSUM, "%s: invalid header checksum \"%.*s\"\n",