summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-02-10 21:02:16 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-02-10 21:02:16 (GMT)
commitc329898abb167f05e37f3d0305e833127a26a4d0 (patch)
treea1011f24c17d6eec6edb52702f5803db5eee5d6f /git-compat-util.h
parentb0e67fffb42059cc5dca6f58c376a2ffc5fb4520 (diff)
parent4ab07e4d1076a1b94b91d58913daeb20eb1c0e2d (diff)
downloadgit-c329898abb167f05e37f3d0305e833127a26a4d0.zip
git-c329898abb167f05e37f3d0305e833127a26a4d0.tar.gz
git-c329898abb167f05e37f3d0305e833127a26a4d0.tar.bz2
Merge branch 'il/maint-xmallocz' into maint
* il/maint-xmallocz: Fix integer overflow in unpack_compressed_entry() Fix integer overflow in unpack_sha1_rest() Fix integer overflow in patch_delta() Add xmallocz()
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index a979e41..812f55a 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -345,6 +345,7 @@ extern void release_pack_memory(size_t, int);
extern char *xstrdup(const char *str);
extern void *xmalloc(size_t size);
+extern void *xmallocz(size_t size);
extern void *xmemdupz(const void *data, size_t len);
extern char *xstrndup(const char *str, size_t len);
extern void *xrealloc(void *ptr, size_t size);