diff options
author | Shawn Pearce <spearce@spearce.org> | 2015-01-27 00:49:02 -0500 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org <gerrit@eclipse.org> | 2015-01-27 00:49:02 -0500 |
commit | 9a2c5068450fd34477872f4a8c9876619da3d8b4 (patch) | |
tree | 3b749e2195da9ad1c807263eec1968a2fa7617f0 /org.eclipse.jgit/src/org/eclipse | |
parent | d612468c5c25057d1137832e6d3bad4432dae82c (diff) | |
parent | 3d17be85bac795d7da3caa15b5b09adb46052584 (diff) | |
download | jgit-9a2c5068450fd34477872f4a8c9876619da3d8b4.tar.gz jgit-9a2c5068450fd34477872f4a8c9876619da3d8b4.zip |
Merge "Handle invalid tree extensions"
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheTree.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheTree.java b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheTree.java index 5acde4385e..30932e8274 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheTree.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheTree.java @@ -425,7 +425,7 @@ public class DirCacheTree { */ void validate(final DirCacheEntry[] cache, final int cCnt, int cIdx, final int pathOff) { - if (entrySpan >= 0) { + if (entrySpan >= 0 && cIdx + entrySpan <= cCnt) { // If we are valid, our children are also valid. // We have no need to validate them. // |