Article View: linux.kernel.git
Article #3373Re: [PATCH 0/4] use size_t when parsing and checking objects
From: Elia Pinto
Date: Thu, 19 Nov 2026 06:50
Date: Thu, 19 Nov 2026 06:50
26 lines
11852 bytes
11852 bytes
Hi, A gentle ping on this series, which has had no comments on the code so far. Simon's remark on the cover letter was about the use of size_t in general, and I answered it in this thread. It still applies cleanly to current master (e1ec09b23c) and merges cleanly with 'seen'. The pack-receive series now depends on it. There I agreed with Patrick to hold back two patches until this series lands [1]: unpack-objects could then pass the size to parse_object_buffer() without a cast, and where "long" has 32 bits while size_t has 64, "git fsck" reaches its verify callbacks for objects of 4GiB or more only once check_object_signature() (1/4 here) stops reporting them as corrupt. Is there anything I should change for this to move forward? In particular, would you like the EXPENSIVE tests guarded by !LONG_IS_64BIT that the cover letter offered, or is it fine without them? [1] https://lore.kernel.org/git/20261119060524.775205-1-gitter.spiros@gmail.com/ Thanks, Elia
Technical Details
Message-ID:
<20261119065024.826502-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-75790-linux-kernel-git=dewy.ruReferences:
<cover.1793444420.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-75790-linux-kernel-git=dewy.ru
From: gitter.spiros@gmail.com (Elia Pinto)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH 0/4] use size_t when parsing and checking objects
Date: Thu, 19 Nov 2026 07:50:24 +0100
Organization: Usenet Network
Message-ID: <20261119065024.826502-1-gitter.spiros@gmail.com>
References: <cover.1793444420.git.gitter.spiros@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="2810925"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:f4MEDfSxoxhcKaiyWoXAflQR5z4= sha256:v9HoCSt0NEffk8S4chLtiEAPYWJyYL8O8xOVYJwZluA=
sha1:M7WDo+E6F6pmNE4sf3UxkMW0jEs= sha256:gFyLI8WGiOmiT5YqyfAwV6av/tBayyGXskk5HGzPwGw=
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 CE3A9115534; Thu, 19 Nov 2026 09:50:45 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.149
X-Spam-Status: No, score=-3.149 tagged_above=-9999 required=6.31
tests=[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 v136jGVConnC;
Thu, 19 Nov 2026 09:50:42 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=git+bounces-75790-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
by mail.dewy.ru (Postfix) with ESMTPS id 8EDC4115525; Thu, 19 Nov 2026 09:50:34 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sto.lore.kernel.org (Postfix) with ESMTP id 00B4A62707C; Thu, 19 Nov 2026 06:50:34 +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=1795071031;
b=0gEp7RsRZJdmYnCtxEWM2UHXiJ1QEM+3rNcEGIm+ZNPEcXrf/bH6E3P6RNEyfDxP7wBN
A5dupovuRpwpOsBgXVkniLHPTCrvvkCnlOVqUUD1DKtOUrApPLNxlGCWQD54N4IU/1yv+
eHAEK4l6By0yOuQKxAHOoPokH50Dw3YlyyWAlqAmGSqRe+QjHBPskFHs6ewMQSIGO1ohI
lkVyi3z/PezKaZqGBSOuqWLEjGbJ9gHql+6UAT+8L9kOaidCXthbLxO3t9vPVJ6Dj8Wsi
3CBCJcRBHsXemJdo0YY8YSADb4gdCtmJWheOZ0Kd6y106O3aG2ODpK6WvQU8fzOMr7w==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795071031;
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=0698PEwkye5fB74zmDoC5XKAdv2OhBbSBVgNtlM/kHQ=;
b=LCj0L/NAOymOEUm6X/UHcrKhBfTfgZyOi3b2Nhlr49m7KeVcX77omPPv2/fffPHqbBtd
/C660b2vwOz/OXFLYRxaj9ZhIVDia8bvOk2ZGz4Q9JKnVsoRWDcBkZ4glBhT965UcKLf/
17uCv9P1vyCRpk3gvhKOzSb2nfdSF8xIIVICdg0AGrKJ8+9Ga+gHbYMu5J3VrLn9T+c4u
SxYJHQNl+63214I79AlUMn8U1xE6jBvJjJ2wDfjN1tm359lEK99BSXcEkLzkegSKU/yGn
U1YvwTEok0rdLPMrjwrx6A5V5L2zRtG/ORWV+407+MzZyZKCBUmq4GmDGm7Hvy3fv7Q==
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=evfYeCNo;
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 479FC606A32F;
Thu, 19 Nov 2026 06:50:31 +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=evfYeCNo
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=1795071030;
b=ulCFUqBBRsz93bW/2R4/UuUExj46vznX8GDPlt+vJrcPf+SYW9w3g3Aew+FSr629aAKK
lMBSGGdWj5S9XFNuXRlJwZY5TukDtCZdDLc4++etf1/ULKQ0Eve4wt+nWRreqEclEviJF
04Ssu/ZjVcvwhKHsWYtvDbRcdkoLrV9Kb6hSaoGL3LPJ7uXBH3/4DaBhm0/DKmzXijUHg
MtEFWLEwqwqy6A3V0tUhzZAAcqsjbJMEsdlrN3O9tX3ZPS5OO7n+bFBWwyicLso5Y5Zwy
de9fxH+n+4jso8rPD0+R9Isdue+SWh3EoumZh3xJFGjeqOwoxJMGmOMCgLeTAZg6Ytw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795071030;
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=0698PEwkye5fB74zmDoC5XKAdv2OhBbSBVgNtlM/kHQ=;
b=CdEOJbeVvm/kPO4B3W1bmGU+eWU08ZHiK1D0Hut+Se5/4Ep59hPvwqDf1gj7wp3n+QpD
wSsFqDZi87wl7dcUK6+a09u2AfPXqzZxOPKjgNnUDpC43mZlY6HDj9r/tbYoQMcot5hsE
HB7JuhApsJ8m7sXBhbiofquJAEJBujas/z2J9KxUqYjNmkS/jVMyPg1hjj2o3KTtF2QJR
BEL3h7caKM20Lx5mCb9y9e4iL7lu9xg1em2t3uHrXC45aL2oIArC7B5W5+8mJMn8MmZZl
y0ZE9W1wGRrT8lFEViziByKoyjHnxmTCPTTh1R4Je3ljNCUr+RxP0Vqv8KPoSIyAqrg==
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=evfYeCNo;
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 1A2F5606A320
for <git@vger.kernel.org>; Thu, 19 Nov 2026 06:50:29 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1A2F5606A320
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-4a35ac4475dso13955845e9.2
for <git@vger.kernel.org>; Wed, 18 Nov 2026 22:50:29 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1795071028; x=1795675828; 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=0698PEwkye5fB74zmDoC5XKAdv2OhBbSBVgNtlM/kHQ=;
b=evfYeCNoV+TTqpv6/DyJxIlAZ926ZIn1nJJlKwtJXv7A1Py7nS/f2j0VBb0aVeAUu9
+ms5hhfGeayTndprvAO5nHx5qwCrPM/ePu7VmIl/NrizCOvAEGTZ9YDh4pWyKLXnV3gA
QdLcld9nbv9uL5+4qLz30bNVmkEW5apMKgqHinwaFt4xHAGk0youlIT89Spo72HgQi+2
3d1IWCm/k6az41IcY6MgqwApboP2bdkXxESfeQWCtaJ7RGfWyYXjx+B+b6r5JXQB9d1a
rAi2/ZjedGe0jk0RckVV8Gy4Qna9XoklnsVWFc5p+m/BGWfiZXsLyWSuAogVrUyen1vR
HoyQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795071028; x=1795675828;
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=0698PEwkye5fB74zmDoC5XKAdv2OhBbSBVgNtlM/kHQ=;
b=Tekf0OwruuFdG8HSkKCBAHMcdxcci/KksaEatfpfiv4sLt2kvhkOpb4TI+4w7u+qcY
K8EFPGZuIgpQ1bfREByZjeHthKtRq21A1t1kwQRlWiMfLzbzumSkcFgGEqr7trRqgCCl
YVGrr5jqWLErPKjmxW9TWrqvIs6gK7FGJ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ed, 18 Nov 2026 22:50:28 -0800 (PST)
X-Received: from ubuntu26lts1.example.com ([151.31.213.44])
by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb853368d3sm14379625e9.1.2026.11.18.22.50.27
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 18 Nov 2026 22:50:27 -0800 (PST)
X-Cc: Junio C Hamano <gitster@pobox.com>,
Patrick Steinhardt <ps@pks.im>,
Jeff King <peff@peff.net>,
René Scharfe <l.s.r@web.de>,
"brian m. carlson" <sandals@crustytoothpaste.net>,
"Eric W. Biederman" <ebiederm@xmission.com>,
Jiang Xin <zhiyou.jx@alibaba-inc.com>,
Ævar Arnfjörð Bjarmason <avarab@gmail.com>,
Johannes Schindelin <Johannes.Schindelin@gmx.de>,
Simon Richter <Simon.Richter@hogyros.de>
X-Mailer: git-send-email 2.53.0
X-In-Reply-To: <cover.1793444420.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