From: Wonseok Oh Date: Wed, 25 Nov 2026 01:46:59 GMT Subject: Re: [PATCH v2] fast-import: die on EOF after an inline M command Message-ID: In-Reply-To: Hello Junio, > This describes the problem accurately, but wouldn't the series at > https://lore.kernel.org/git/20261122140347.41990-1-gitster@pobox.com/ > solve this infinite loop, together with a few others? With your series, v1 patch no longer gets stuck in an infinite loop on the unterminated "cat-blob" input. If you prefer v1 on top of your series, I'll go back to it. Thanks. 2026년 11월 25일 (수) 오전 3:12, Junio C Hamano 님이 작성: > > "Wonseok Oh via GitGitGadget" writes: > > > From: Wonseok Oh > > > > After "M inline ", fast-import expects a "data" command. > > If the input ends there, file_change_m() leaves its read loop without > > reading any data and writes an uninitialized object ID into the tree. > > fast-import then exits 0, and "git fsck" reports a missing blob. > > This describes the problem accurately, but wouldn't the series at > https://lore.kernel.org/git/20261122140347.41990-1-gitster@pobox.com/ > solve this infinite loop, together with a few others? > > Thanks.