git: cbddb2f02c76 - main - tarfs: Fix checksum on 32-bit platforms.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 07 Mar 2024 08:16:23 UTC
The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=cbddb2f02c7687d1039abcffd931e94e481c11a5 commit cbddb2f02c7687d1039abcffd931e94e481c11a5 Author: Dag-Erling Smørgrav <des@FreeBSD.org> AuthorDate: 2024-03-07 08:15:54 +0000 Commit: Dag-Erling Smørgrav <des@FreeBSD.org> 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",