From: Hervé Cauwelier Date: Sat, 03 Oct 2009 18:09:58 GMT Subject: [PATCH 3/6] Allow zlib to read a pack buffer longer than the actual data Message-ID: <1254593401-18801-4-git-send-email-herve@itaapy.com> In-Reply-To: <1254593401-18801-3-git-send-email-herve@itaapy.com> As we don't know where the compressed data end, only the size of the uncompressed data. Signed-off-by: Hervé Cauwelier --- src/odb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/odb.c b/src/odb.c index 3cfc932..89ee1f2 100644 --- a/src/odb.c +++ b/src/odb.c @@ -432,7 +432,7 @@ static int inflate_buffer(void *in, size_t inlen, void *out, size_t outlen) inflateEnd(&zs); - if ((status != Z_STREAM_END) || (zs.avail_in != 0)) + if (status != Z_STREAM_END) return GIT_ERROR; if (zs.total_out != outlen) -- 1.6.4.4