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

Re: [PATCH] branch: fix segfault when resolving an invalid HEAD

From
Jonas Fonseca <jonas.fonseca@gmail.com>
Date
May 20, 2007, 12:44 UTC
Message-ID
<2c6b72b30705200544g2f9cb67eod5ea9342c3fda2a5@mail.gmail.com>
In-Reply-To
<20070520121917.GA18850@diku.dk>
On 5/20/07, Jonas Fonseca <fonseca@diku.dk> wrote:
> Caused by return value of resolve_ref being passed directly
> to xstrdup whereby the sanity checking was never reached.

While checking other usage of resolve_ref, this problem also occurs in builtin-show-branch.c around line 695, however, the logic later in the file seems to be more forgiving so I have no idea of how to patch it.

-- 
Jonas Fonseca
Previous: Jonas Fonseca
Message 2 of 2 in “branch: fix segfault when resolving an invalid HEAD”
  1. branch: fix segfault when resolving an invalid HEADJonas Fonseca, May 20, 2007
  2. Jonas FonsecaMay 20, 2007

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.