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

Re: [PATCH] t-reftable-basics: allow for `malloc` to be `#define`d

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 8, 2025, 17:41 UTC
Message-ID
<xmqqjzb5mcdv.fsf@gitster.g>
In-Reply-To
<e842ea8c-4ead-49d0-a48b-0d5f8c4e7c0c@web.de>
René Scharfe <l.s.r@web.de> writes:
Show 6 quoted lines
>> It is actually unnecessary to use those function pointers to
>> `malloc`/`realloc`/`free`, though: The `reftable` code goes out of its
>> way to fall back to the initial allocator when passing `NULL` parameters
>> instead. So let's do that instead of causing heap corruptions.
>
> Ugh.  That makes a lot of sense.  Sorry for the trouble! :-/
Thanks for a quick Ack.
Previous: René ScharfeNext: Junio C Hamano
Message 3 of 4 in “t-reftable-basics: allow for `malloc` to be `#define`d”
  1. t-reftable-basics: allow for `malloc` to be `#define`dJohannes Schindelin via GitGitGadget, Jan 8, 2025
  2. René ScharfeJan 8, 2025
  3. Junio C HamanoJan 8, 2025
  4. Junio C HamanoJan 8, 2025

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.