]> git.ipfire.org Git - thirdparty/git.git/commit - cache.h
Wrap inflate and other zlib routines for better error reporting
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 8 Jan 2009 03:54:47 +0000 (19:54 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sun, 11 Jan 2009 10:13:06 +0000 (02:13 -0800)
commit39c68542fc8d8477f2080c99efedb9dce975abc6
tree20dc36a5228a41c4332ceed568254ab48d16c9df
parent141201d124f3663a98e0f362c1af7f5f7b58dabb
Wrap inflate and other zlib routines for better error reporting

R. Tyler Ballance reported a mysterious transient repository corruption;
after much digging, it turns out that we were not catching and reporting
memory allocation errors from some calls we make to zlib.

This one _just_ wraps things; it doesn't do the "retry on low memory
error" part, at least not yet. It is an independent issue from the
reporting.  Some of the errors are expected and passed back to the caller,
but we die when zlib reports it failed to allocate memory for now.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-apply.c
builtin-pack-objects.c
builtin-unpack-objects.c
cache.h
http-push.c
http-walker.c
index-pack.c
sha1_file.c
wrapper.c