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

Re: Git crashes on pull

From
Michael Wookey <michaelwookey@gmail.com>
Date
Sep 15, 2009, 23:30 UTC
Message-ID
<d2e97e800909151630w44d440f5hadb088aa5e1f8e22@mail.gmail.com>
In-Reply-To
<7vzl8v4y5g.fsf@alter.siamese.dyndns.org>
2009/9/16 Junio C Hamano <gitster@pobox.com>:
Show 23 quoted lines
> Guido Ostkamp <git@ostkamp.fastmail.fm> writes:
>
>> On Tue, 15 Sep 2009, Junio C Hamano wrote:
>>
>>> Please try this patch, which I have been preparing for later pushout.
>>>
>>> From: Junio C Hamano <gitster@pobox.com>
>>> Date: Mon, 14 Sep 2009 14:48:15 -0700
>>> Subject: [PATCH] http.c: avoid freeing an uninitialized pointer
>>>
>>> An earlier 59b8d38 (http.c: remove verification of remote packs) left
>>> the variable "url" uninitialized; "goto cleanup" codepath can free it
>>> which is not very nice.
>>>
>>> Signed-off-by: Junio C Hamano <gitster@pobox.com>
>>
>> Appears to be working ok now, thanks.
>
> Thanks.
>
> The sad part of the story was that this regression was introduced by a
> change to work around recent breakage observed when fetching from the http
> server github runs, and it was the primary purpose of pushing 1.6.4.3 out.
If only I had given it a run with the clang static analyzer earlier :(
Here is what Xcode would have shown -
    http://dl.getdropbox.com/u/1006983/git-clang.png
I can make the Xcode project available if anyone is interested.
Previous: Junio C HamanoNext: Tay Ray Chuan
Message 5 of 6 in “Git crashes on pull”
  1. Guido OstkampSep 15, 2009
  2. Junio C HamanoSep 15, 2009
  3. Guido OstkampSep 15, 2009
  4. Junio C HamanoSep 15, 2009
  5. Michael WookeySep 15, 2009
  6. Tay Ray ChuanSep 18, 2009

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.