Article View: linux.kernel.git
Article #3375Re: [PATCH 0/2] archive, apply: do not truncate files of 4GiB or more
From: Elia Pinto
Date: Thu, 19 Nov 2026 06:57
Date: Thu, 19 Nov 2026 06:57
33 lines
11926 bytes
11926 bytes
Hi, A gentle ping on this two-patch series, which has had no comments so far. It still applies cleanly to current master (e1ec09b23c) and merges cleanly with 'seen'. 1/2 (archive) stands on its own. 2/2 (apply) has a question I should have raised in the cover letter. It fixes the file written to the working tree, but with --index, and so with "git am", the result still goes through odb_write_object(), whose length is an "unsigned long" until "use size_t for a few more object and buffer sizes" [1] lands. Where "long" has 32 bits while size_t has 64, the blob written to the index is then still truncated, while the working tree file is now complete. I see two ways to handle that: - pass the size through cast_size_t_to_ulong() in add_index_file(), so that "git apply --index" dies instead, as 5/5 of the loose object series [2] does for notes, and drop the cast once [1] is in; - hold back 2/2 until [1] lands, as Patrick suggested for a similar case in the pack-receive series [3]. Which one would you prefer? [1] https://lore.kernel.org/git/cover.1793439137.git.gitter.spiros@gmail.com/ [2] https://lore.kernel.org/git/cover.1795069177.git.gitter.spiros@gmail.com/ [3] https://lore.kernel.org/git/av2pBh7vLj5DVDha@pks.im/ Thanks, Elia
Technical Details
Message-ID:
<20261119065711.827536-1-gitter.spiros@gmail.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-75792-linux-kernel-git=dewy.ruReferences:
<cover.1793524457.git.gitter.spiros@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-75792-linux-kernel-git=dewy.ru
From: gitter.spiros@gmail.com (Elia Pinto)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH 0/2] archive, apply: do not truncate files of 4GiB or more
Date: Thu, 19 Nov 2026 07:57:11 +0100
Organization: Usenet Network
Message-ID: <20261119065711.827536-1-gitter.spiros@gmail.com>
References: <cover.1793524457.git.gitter.spiros@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="2812093"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:B5JCk9gb0rKuzwNOjclE92EAhLM= sha256:5MG8Fbis5F20uNL/Ylsv5gjb/yQPBjbw4Hyu8TO09xc=
sha1:a1URgdQQXKvAn4xQcVSYNV9weII= sha256:vy+2vlzcFI+1HrRQvRgZipmiDldlsCZo+1+2exuMub0=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id D2C12115539; Thu, 19 Nov 2026 09:57:32 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id 4k7WqdonHASz;
Thu, 19 Nov 2026 09:57:29 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-75792-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 28BB9115535; Thu, 19 Nov 2026 09:57:20 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id E6D1A2A0EB4; Thu, 19 Nov 2026 06:57:17 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1795071437;
b=tEst+eJ14l5lIS0vNG4ODfS+fyhGxsGL/aqBZASf4N0iUJfPBtoz9lluaRsCszPgSNfV
2kK+LUg6flU1NgJKOk5/Y23gqBmsYKHsHMVe8Pu1lNCwxTysnXXvs8ohtUVOXrLAKZ9xU
bDacF6uY34gl1WY+v9+6qNAudNYTHrQ3gpIXGDBw/p2oFBofOls6xCX+/o1vYPXZN29ei
n3/4CISI4USWzJBn4670JON2u1bsX4/lKplztjHZ9OJ6NGTR7M+ebnYv6e9h4MGzXCswK
/BZYsojfi4lW7++NGB8Mw9bVteeg+qV/fqfvmpppdNNTWfjRd1ptDnLG34+bN3h+c/g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795071437;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:
References:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:
Content-Transfer-Encoding;
bh=ajLSumPrH2Wgm5GXb9uyCpHFBo5R1rCPDQdpdYNmZAE=;
b=5MaBAWHF1tr1cJzqlhhjZ141VXQJsMtNp174ywY0wNiesW6bEAMUTptIXCViVzB9uAVr
OHXLs13qCaCHLLTt9oJU1wQuZTMbbnG9F4p045GR4NodIB+A+IL6yPurBEzCxP0LvzPjB
ZJSgimsI81J9NtA6qmlgQEqRx6donyObOGNXVKpQYvH/9AGRJ7AyBPA39fVAaxrOoKwWT
uN977S4LgwipnPxbGV0QGQxfo4Bw+xOy2DE8OlF8z8kKaT2ClHembHY49SrrNcErl2oTY
5P6twiCLQe8Z1tYyp0HSUpv9+B/y1sZ44dyWe4rinSIQxb+6IV1tMCbT4RXZeWMhreg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=xTYuZpeC;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id BDA75606A330;
Thu, 19 Nov 2026 06:57:17 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=xTYuZpeC
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.54
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795071436;
b=TQ8GoV8h2R+shH5l+08i4QjQa/IhKf24Oh6ZQ8WmXc5knBDxzmjNCPC6que09TL7H8Mb
9F0wMWxeR6RlXGS4XuCZ3QI3HAaoMpT0N2GlCmG09JeareJ+rAdvafyjp5rmzHIpUr2l6
S9YnO/3znM4CZzHh0m3QsCFz6Qo3OJFmOIq5r7z5aEfSaT1Ud6B5ryi6xM2lRAJfYnspc
sIBGOoTCj7NCNvETiTOR7cB2H0DxQ9EzKLKIhn1S3nNo72k8Iosmls9WBB4VoWoXXKAXN
JZeW7Q5uNIYW027ZCyoOKhHxK9oQ3fVm9h1NtioI5erosIe79M64Ua97CHR+MGENGLQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795071436;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:
Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version:
Content-Transfer-Encoding;
bh=ajLSumPrH2Wgm5GXb9uyCpHFBo5R1rCPDQdpdYNmZAE=;
b=UGdDuXQduOMJ0SzlaxQyI7JKIdjtgI1oak4At2pIr77eyABr+Xf/5u6ybnA9qTdJto84
yk91/pk8gKxCpp+lm+son2Si7QBqNhB3p2mJbbFtWVbviIVYY8f8NsawMA+rmxy2MgbwM
la6bKaRwsIL/Xk/8a00ezcWjqUxW7WMpmBfrbMWi6RGFiKKIhVfMO3AOwIouJecdcs4a4
moJURIZZwg9JhgOWWnoJ8KG7u6AZzMe8Q1gEzQOt2v7kuJdjftZVeGkgsiP2BgvSwt/2C
dilsk8or0CNH1t7odCD7qzMuSMz30dqrBJwNCV8471lejYw+fqvLzKzGbnPcO0qxH2A==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=xTYuZpeC;
arc=none smtp.remote-ip=209.85.128.54
X-Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 93731606A320
for <git@vger.kernel.org>; Thu, 19 Nov 2026 06:57:16 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 93731606A320
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4a2153c8525so13607705e9.3
for <git@vger.kernel.org>; Wed, 18 Nov 2026 22:57:16 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1795071435; x=1795676235; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=ajLSumPrH2Wgm5GXb9uyCpHFBo5R1rCPDQdpdYNmZAE=;
b=xTYuZpeCfLdKAC9CF5THQKkN+sTNi/pusGC0DjQRdYzwoc1LytAINu9Qk1MOczLb49
RjeM2mHD34VsLPlc0tu8QwStvlxPFZEHnLwbQ+k5dF1KPZm0p1XWfJ9trwfUVC15CaTT
REK0ci6JL4LmbQoGYcYO81gqAezYzHHCQiNtZOx+Mb813pCLvZ+Vm5x/p0oqs24dpO+Q
1nXF4yMazmre1thSIgdSjGQXN+JOI6OweRwkFRqJoYVwHQrgcYe0Htxjbq690CzHQ2qX
lw0F/YQhXAry9n99OwNb5rj4G54wL18bDQlnk22HIBPrQs0cwZbl2MO+9XAdFRacuET9
1Vdg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795071435; x=1795676235;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to:content-type;
bh=ajLSumPrH2Wgm5GXb9uyCpHFBo5R1rCPDQdpdYNmZAE=;
b=F3HL4UJjWjWF71YV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
DIj9D9+obE2or3YqzREV436T56HRAiedX43lVpxJeGCf9EKWYDJSseUNa84XY8g=
X-Received: by 2002:a05:600c:4fc5:b0:4bb:71c1:3ca6 with SMTP id 5b1f17b1804b1-4bb7da27e95mr96947015e9.21.1795071434790;
Wed, 18 Nov 2026 22:57:14 -0800 (PST)
X-Received: from ubuntu26lts1.example.com ([151.31.213.44])
by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb85372d15sm15933565e9.14.2026.11.18.22.57.13
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 18 Nov 2026 22:57:14 -0800 (PST)
X-Cc: RenΓ© Scharfe <l.s.r@web.de>,
Johannes Schindelin <Johannes.Schindelin@gmx.de>,
"Matthew E. Luallen" <m@sph3r3.com>,
Junio C Hamano <gitster@pobox.com>,
Patrick Steinhardt <ps@pks.im>
X-Mailer: git-send-email 2.53.0
X-In-Reply-To: <cover.1793524457.git.gitter.spiros@gmail.com>
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list