git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] fast-import: die on EOF after an inline M command

From
WOWonseok Oh <wonseok_oh@korea.ac.kr>
Date
Nov 25, 2026, 01:46 UTC
Message-ID
<CAD2pp5v4dkHbwxZ9UH0jPeG+3hMaYCQ__QpN9wSUC1L1tZDL=g@mail.gmail.com>
In-Reply-To
<xmqq33sqt7xw.fsf@gitster.g>
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 <gitster@pobox.com>님이 작성:
Show 15 quoted lines
>
> "Wonseok Oh via GitGitGadget" <gitgitgadget@gmail.com> writes:
>
> > From: Wonseok Oh <marinelay7@gmail.com>
> >
> > After "M <mode> inline <path>", 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.
Previous: Junio C HamanoNext: Wonseok Oh
Message 5 of 6 in “fast-import: catch missing data after inline M at EOF”
  1. fast-import: catch missing data after inline M at EOFWonseok Oh via GitGitGadget, Nov 21, 2026
  2. Junio C HamanoNov 21, 2026
  3. fast-import: die on EOF after an inline M commandWonseok Oh via GitGitGadget, Nov 24, 2026
  4. Junio C HamanoNov 24, 2026
  5. Wonseok OhNov 25, 2026
  6. Wonseok OhNov 22, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.