summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorChristian Halstrick <christian.halstrick@sap.com>2015-05-11 04:09:53 -0400
committerGerrit Code Review @ Eclipse.org <gerrit@eclipse.org>2015-05-11 04:09:55 -0400
commit446fa0e48015697bcba5da8c9ef2a35a24ffb710 (patch)
tree27a6d88c0b6eab8b58f8726caf392c86f136c40f /org.eclipse.jgit
parent3bc44010108a34e5fee3473412a0a28d2b19258d (diff)
parent6f7130140410d9c8269b846e782f27df17783c35 (diff)
downloadjgit-446fa0e48015697bcba5da8c9ef2a35a24ffb710.tar.gz
jgit-446fa0e48015697bcba5da8c9ef2a35a24ffb710.zip
Merge "Fix possible AIOOB in DirCacheTree.contains()"
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheTree.java2
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 30932e8274..83aa8fa4de 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheTree.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheTree.java
@@ -399,7 +399,7 @@ public class DirCacheTree {
for (int eOff = 0; eOff < eLen && aOff < aLen; eOff++, aOff++)
if (e[eOff] != a[aOff])
return false;
- if (aOff == aLen)
+ if (aOff >= aLen)
return false;
return a[aOff] == '/';
}