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

Re: [PATCH v2 3/3] receive-pack: allow a maximum input size to be specified

From
Jeff King <peff@peff.net>
Date
Aug 18, 2016, 21:43 UTC
Message-ID
<20160818214331.ie7idv2m3ljgjzyg@sigill.intra.peff.net>
In-Reply-To
<xmqqpop56czc.fsf@gitster.mtv.corp.google.com>
On Thu, Aug 18, 2016 at 01:25:43PM -0700, Junio C Hamano wrote:
Show 12 quoted lines
> > diff --git a/Documentation/config.txt b/Documentation/config.txt
> > index 0bcb679..f5b6061 100644
> > --- a/Documentation/config.txt
> > +++ b/Documentation/config.txt
> > @@ -2517,6 +2517,11 @@ receive.unpackLimit::
> >  	especially on slow filesystems.  If not set, the value of
> >  	`transfer.unpackLimit` is used instead.
> >  
> > +receive.maxsize::
> 
> Shouldn't this be maxInputSize, not just maxSize?  You are limiting
> the size of the input, not the size of the resulting pack, right?

Yeah, that is probably a better name. I don't recall why I picked maxSize long ago.

> [...]
I agree, too, with all of the other comments you made.
-Peff
Previous: Junio C HamanoNext: Christian Couder
Message 4 of 7 in “limit the size of the packs we receive”
  1. 0/3 limit the size of the packs we receiveChristian Couder, Aug 18, 2016
  2. 3/3 receive-pack: allow a maximum input size to be specifiedChristian Couder, Aug 18, 2016
  3. Junio C HamanoAug 18, 2016
  4. Jeff KingAug 18, 2016
  5. 2/3 unpack-objects: add --max-input-size=<size> optionChristian Couder, Aug 18, 2016
  6. 1/3 index-pack: add --max-input-size=<size> optionChristian Couder, Aug 18, 2016
  7. Jeff KingAug 18, 2016

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.