Subject: Re: [PATCH] Wrap inflateInit to retry allocation after releasing pack memory

From: Junio C Hamano <[email-masked]>
Date: Wed, 07 Jan 2009 21:23:52 -0800

Linus Torvalds <[email-masked]> writes:

> +int git_inflate(z_streamp strm, int flush)
> +{
> +...
> +	/* Z_BUF_ERROR: normal, needs a buffer output buffer */
> +	case Z_BUF_ERROR:

Thanks, but "needs a buffer output buffer" made me scratch my head
somewhat.

  ... Z_BUF_ERROR if no progress is possible or if there was not enough
  room in the output buffer when Z_FINISH is used. Note that Z_BUF_ERROR
  is not fatal, and inflate() can be called again with more input and more
  output space to continue decompressing.