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

Re: [PATCH] Fix in Git.pm cat_blob crashes on large files (reviewed by Jeff King)

From
Erik Faye-Lund <kusmabite@gmail.com>
Date
Feb 22, 2013, 17:10 UTC
Message-ID
<CABPQNSaGSOio1Sn=--jdCfOkw4N+L_khH3Z6AZAQ=aaUg_OGig@mail.gmail.com>
In-Reply-To
<CAMB+bfLjewgKjSN6WNHGkwpRx9OaWipi_-TDa0MnJMDN+6tPZA@mail.gmail.com>

On Fri, Feb 22, 2013 at 6:03 PM, Joshua Clayton <stillcompiling@gmail.com> wrote:

Show 8 quoted lines
> Read and write each 1024 byte buffer, rather than trying to buffer
> the entire content of the file.
> Previous code would crash on all files > 2 Gib, when the offset variable
> became negative (perhaps below the level of perl), resulting in a crash.
> On a 32 bit system, or a system with low memory it might crash before
> reaching 2 GiB due to memory exhaustion.
>
> Signed-off-by: Joshua Clayton <stillcompiling@gmail.com>

We usually put "Reviewed-by: Name <email>" right below the SoB-line, rather than in the subject. And then we CC the people who were involved in the previous round :)

Previous: Joshua Clayton
Message 2 of 2 in “Fix in Git.pm cat_blob crashes on large files (reviewed by Jeff King)”
  1. Fix in Git.pm cat_blob crashes on large files (reviewed by Jeff King)Joshua Clayton, Feb 22, 2013
  2. Erik Faye-LundFeb 22, 2013

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.