diff options
-rw-r--r-- | diff-delta.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/diff-delta.c b/diff-delta.c index cd238c8ed8..e49643353b 100644 --- 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; |