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

Re: [PATCH v3 0/3] limit the size of the packs we receive

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 24, 2016, 19:30 UTC
Message-ID
<xmqqoa4iotg9.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20160824184157.19264-1-chriscool@tuxfamily.org>
Christian Couder <christian.couder@gmail.com> writes:
Show 42 quoted lines
> Diff with previous v2 version
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> diff --git a/Documentation/config.txt b/Documentation/config.txt
> index f5b6061..8a115b3 100644
> --- a/Documentation/config.txt
> +++ b/Documentation/config.txt
> @@ -2517,10 +2517,11 @@ receive.unpackLimit::
>  	especially on slow filesystems.  If not set, the value of
>  	`transfer.unpackLimit` is used instead.
>  
> -receive.maxsize::
> -	If the size of a pack file is larger than this limit, then
> -	git-receive-pack will error out, instead of accepting the pack
> -	file. If not set or set to 0, then the size is unlimited.
> +receive.maxInputSize::
> +	If the size of the incoming pack stream is larger than this
> +	limit, then git-receive-pack will error out, instead of
> +	accepting the pack file. If not set or set to 0, then the size
> +	is unlimited.
>  
>  receive.denyDeletes::
>  	If set to true, git-receive-pack will deny a ref update that deletes
> diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c
> ...
> diff --git a/t/t5546-receive-limits.sh b/t/t5546-receive-limits.sh
> new file mode 100755
> index 0000000..10cb0be
> --- /dev/null
> +++ b/t/t5546-receive-limits.sh
> @@ -0,0 +1,55 @@
> +#!/bin/sh
> + ...
> +test_done
> ---
>
> Christian Couder (1):
>   unpack-objects: add --max-input-size=<size> option
>
> Jeff King (2):
>   index-pack: add --max-input-size=<size> option
>   receive-pack: allow a maximum input size to be specified
This was a pleasant read.  All looked sensible.
Thanks.
Previous: Jeff King
Message 6 of 6 in “limit the size of the packs we receive”
  1. 0/3 limit the size of the packs we receiveChristian Couder, Aug 24, 2016
  2. 1/3 index-pack: add --max-input-size=<size> optionChristian Couder, Aug 24, 2016
  3. 2/3 unpack-objects: add --max-input-size=<size> optionChristian Couder, Aug 24, 2016
  4. 3/3 receive-pack: allow a maximum input size to be specifiedChristian Couder, Aug 24, 2016
  5. Jeff KingAug 24, 2016
  6. Junio C HamanoAug 24, 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.