Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
t1020: Get rid of 'cd "$HERE"' at the start of each test
[gitweb.git]
/
git-compat-util.h
diff --git
a/git-compat-util.h
b/git-compat-util.h
index 28d6b008c16e1311a5bab45a96c2f3dd72f25f85..877096ecb09e524174ff22db3722d6428f43bcf4 100644
(file)
--- a/
git-compat-util.h
+++ b/
git-compat-util.h
@@
-393,6
+393,8
@@
extern int odb_pack_keep(char *name, size_t namesz, unsigned char *sha1);
static inline size_t xsize_t(off_t len)
{
+ if (len > (size_t) len)
+ die("Cannot handle files this big");
return (size_t)len;
}