Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
packfile: correct zlib buffer handling
[gitweb.git]
/
packfile.c
diff --git
a/packfile.c
b/packfile.c
index 4a5fe7ab1883843a389ce74bf1c7bd89890d8e51..d55569921793ed8f16efef2d6908740888a06b4d 100644
(file)
--- a/
packfile.c
+++ b/
packfile.c
@@
-1422,6
+1422,9
@@
static void *unpack_compressed_entry(struct packed_git *p,
return NULL;
}
+ /* versions of zlib can clobber unconsumed portion of outbuf */
+ buffer[size] = '\0';
+
return buffer;
}