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

Re: [PATCH 0/2] fix a segfault in get_main_ref_store()

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
May 18, 2018, 23:32 UTC
Message-ID
<nycvar.QRO.7.76.6.1805190132170.77@tvgsbejvaqbjf.bet>
In-Reply-To
<20180518222506.GA9527@sigill.intra.peff.net>
Hi Peff,
On Fri, 18 May 2018, Jeff King wrote:
Show 12 quoted lines
> I stumbled across a BUG() today. But interestingly, in the current tip
> of master it actually segfaults instead! This fixes the segfault (back
> into a BUG(), and then fixes the caller to avoid the BUG() in the first
> place).
> 
>   [1/2]: get_main_ref_store: BUG() when outside a repository
>   [2/2]: config: die when --blob is used outside a repository
> 
>  builtin/config.c       | 3 +++
>  refs.c                 | 3 +++
>  t/t1307-config-blob.sh | 4 ++++
>  3 files changed, 10 insertions(+)
Both patches look obviously correct to me.

Thanks, Dscho

Previous: Taylor Blau
Message 6 of 6 in “fix a segfault in get_main_ref_store()”
  1. 0/2 fix a segfault in get_main_ref_store()Jeff King, May 18, 2018
  2. 1/2 get_main_ref_store: BUG() when outside a repositoryJeff King, May 18, 2018
  3. Stefan BellerMay 18, 2018
  4. 2/2 config: die when --blob is used outside a repositoryJeff King, May 18, 2018
  5. Taylor BlauMay 18, 2018
  6. Johannes SchindelinMay 18, 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.