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

Re: [PATCH] builtin/blame: destroy initialized commit_info only

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Feb 9, 2015, 21:33 UTC
Message-ID
<CAPig+cQAmYzzVF5+0j6AgcpEsi6SOVkXyqw4uOMCUjExPSLz_w@mail.gmail.com>
In-Reply-To
<1423517287-8354-1-git-send-email-sunshine@sunshineco.com>
On Mon, Feb 9, 2015 at 4:28 PM, Eric Sunshine <sunshine@sunshineco.com> wrote:
> Since ea02ffa3 (mailmap: simplify map_user() interface, 2013-01-05),
> find_alignment() has been invoking commit_info_destroy() on an
> uninitialized auto 'struct commit_info' (when METAINFO_SHOWN is not
> set). commit_info_destroy() calls strbuf_release() for each of
s/each of/each/
...despite several proof-reads (sigh).
Show 6 quoted lines
> 'commit_info' strbuf member, which randomly invokes free() on whatever
> random stack value happens to be reside in strbuf.buf, thus leading to
> periodic crashes.
>
> Reported-by: Dilyan Palauzov <dilyan.palauzov@aegee.org>
> Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Previous: Eric SunshineNext: Eric Sunshine
Message 2 of 5 in “builtin/blame: destroy initialized commit_info only”
  1. builtin/blame: destroy initialized commit_info onlyEric Sunshine, Feb 9, 2015
  2. Eric SunshineFeb 9, 2015
  3. Eric SunshineFeb 9, 2015
  4. Jeff KingFeb 9, 2015
  5. Jeff KingFeb 9, 2015

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.