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

Re: [PATCH] Fix segfault in diff-delta.c when FLEX_ARRAY is 1

From
Nicolas Pitre <nico@cam.org>
Date
Dec 18, 2007, 14:46 UTC
Message-ID
<alpine.LFD.0.999999.0712180941250.8467@xanadu.home>
In-Reply-To
<7vwsrc1idm.fsf@gitster.siamese.dyndns.org>
On Tue, 18 Dec 2007, Junio C Hamano wrote:
Show 9 quoted lines
> Linus Torvalds <torvalds@linux-foundation.org> writes:
> 
> > But there's a few that aren't obviously allocations (this is a list done 
> > with grep and sparse, I didn't look at whether the values used are then 
> > all allocation-related):
> >
> >  - diff-delta.c:250        memsize = sizeof(*index)
> 
> I haven't studied this codepath.
Harmless overallocation.  Nothing to worry about.
Nicolas
Previous: David Kastrup
Message 7 of 7 in “Fix segfault in diff-delta.c when FLEX_ARRAY is 1”
  1. Fix segfault in diff-delta.c when FLEX_ARRAY is 1Pierre Habouzit, Dec 18, 2007
  2. Pierre HabouzitDec 18, 2007
  3. Linus TorvaldsDec 18, 2007
  4. Linus TorvaldsDec 18, 2007
  5. Junio C HamanoDec 18, 2007
  6. David KastrupDec 18, 2007
  7. Nicolas PitreDec 18, 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.