Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
commit: add generation number to struct commit
[gitweb.git]
/
diff-delta.c
diff --git
a/diff-delta.c
b/diff-delta.c
index cd238c8ed8fbbd61984b72d1d8018e7ab2a9d29e..e49643353bf56807b3d4ac4011784b5d8dd6f7a4 100644
(file)
--- a/
diff-delta.c
+++ b/
diff-delta.c
@@
-454,6
+454,9
@@
create_delta(const struct delta_index *index,
moff += msize;
msize = left;
+ if (moff > 0xffffffff)
+ msize = 0;
+
if (msize < 4096) {
int j;
val = 0;