Browse Source

Merge "Handle invalid tree extensions"

stable-3.7
Shawn Pearce 10 years ago committed by Gerrit Code Review @ Eclipse.org
parent
commit
9a2c506845
  1. 2
      org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheTree.java

2
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheTree.java vendored

@ -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.
//

Loading…
Cancel
Save