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

[PATCH 0/6] fix some parse_commit segfaults

From
Jeff King <peff@peff.net>
Date
Oct 24, 2013, 08:52 UTC
Message-ID
<20131024085213.GA1267@sigill.intra.peff.net>
This is a repost of the series here:
  http://thread.gmane.org/gmane.comp.version-control.git/235735/focus=235826

(the original was a single patch, followed by a 5-patch series, which I've combined here). It's mostly a cleanup, since parse_commit will only fail in corrupted repos, but I did run into it in a real (corrupted) repo.

  [1/6]: log_tree_diff: die when we fail to parse a commit
  [2/6]: assume parse_commit checks commit->object.parsed
  [3/6]: assume parse_commit checks for NULL commit
  [4/6]: use parse_commit_or_die instead of segfaulting
  [5/6]: use parse_commit_or_die instead of custom message
  [6/6]: checkout: do not die when leaving broken detached HEAD
-Peff
Next: Jeff King
Message 1 of 7 in “fix some parse_commit segfaults”
  1. 0/6 fix some parse_commit segfaultsJeff King, Oct 24, 2013
  2. 1/6 log_tree_diff: die when we fail to parse a commitJeff King, Oct 24, 2013
  3. 2/6 assume parse_commit checks commit->object.parsedJeff King, Oct 24, 2013
  4. 3/6 assume parse_commit checks for NULL commitJeff King, Oct 24, 2013
  5. 4/6 use parse_commit_or_die instead of segfaultingJeff King, Oct 24, 2013
  6. 5/6 use parse_commit_or_die instead of custom messageJeff King, Oct 24, 2013
  7. 6/6 checkout: do not die when leaving broken detached HEADJeff King, Oct 24, 2013

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.