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

[PATCHv2 0/2] Fix rerere segfault with specially crafted merge

From
Elijah Newren <newren@gmail.com>
Date
Sep 11, 2018, 18:55 UTC
Message-ID
<20180911185546.10449-1-newren@gmail.com>
In-Reply-To
<20180905175605.12341-1-newren@gmail.com>

This series documents and fixes a rerere segfault (dating back to git-2.7.0) when a merge strategy makes the last entry in the index be at stage 1.

Changes since last version:
  - In my last submission I only had the code fix and no testcase; I
    even commented in the commit message that the bug "cannot be
    triggered in the current codebase" and mentioned that I was fixing
    it just because an exotic external merge strategy could trigger
    the bug.  I realized later that it is triggerable without any
    exotic external merge strategies; built-in ones can do it.
Elijah Newren (2):
  t4200: demonstrate rerere segfault on specially crafted merge
  rerere: avoid buffer overrun
 rerere.c          |  2 +-
 t/t4200-rerere.sh | 29 +++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+), 1 deletion(-)
-- 
2.19.0.2.gdbd064c81f
Previous: Elijah NewrenNext: Elijah Newren
Message 2 of 5 in “rerere: avoid buffer overrun”
  1. rerere: avoid buffer overrunElijah Newren, Sep 5, 2018
  2. 0/2 Fix rerere segfault with specially crafted mergeElijah Newren, Sep 11, 2018
  3. 2/2 rerere: avoid buffer overrunElijah Newren, Sep 11, 2018
  4. Junio C HamanoSep 11, 2018
  5. 1/2 t4200: demonstrate rerere segfault on specially crafted mergeElijah Newren, Sep 11, 2018

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.