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

Re: [PATCH] send-pack: segfault fix on forced push

From
Jeff King <peff@peff.net>
Date
Nov 8, 2007, 09:43 UTC
Message-ID
<20071108094339.GA20766@sigill.intra.peff.net>
In-Reply-To
<7vsl3h2i2j.fsf@gitster.siamese.dyndns.org>
On Thu, Nov 08, 2007 at 01:38:12AM -0800, Junio C Hamano wrote:
Show 5 quoted lines
> When pushing to overwrite a ref that points at a commit we do
> not even have, the recent "terse push" patch tried to get a
> unique abbreviation for the non-existent (from our point of
> view) object, which resulted in strcpy(buf, NULL) and
> segfaulted.
Good catch. The fix looks obviously correct.
-Peff
Previous: Junio C Hamano
Message 2 of 2 in “send-pack: segfault fix on forced push”
  1. send-pack: segfault fix on forced pushJunio C Hamano, Nov 8, 2007
  2. Jeff KingNov 8, 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.