![]() In findGraphPosition, when there is no object whose OID starts with the first byte of the sought OID, low equals high. This violates an invariant of the loop, and when the sought OID is lexicographically greater than every other OID in the repository, causes an ArrayIndexOutOfBoundsException (because we're trying to read outside the list of OIDs). Therefore, check the "low < high" condition at the start of the loop, not only after the first iteration. Change-Id: Ic8ac198c151bd161c4996b9e7cb6e6660f151733 Helped-by: Ivan Frade <ifrade@google.com> Signed-off-by: Jonathan Tan <jonathantanmy@google.com> |
||
---|---|---|
.. | ||
.settings | ||
META-INF | ||
exttst/org/eclipse/jgit | ||
findBugs | ||
src/org/eclipse/jgit | ||
tst/org/eclipse/jgit | ||
tst-rsrc | ||
.classpath | ||
.gitignore | ||
.project | ||
BUILD | ||
build.properties | ||
org.eclipse.jgit.core--All-Tests (Java 11) (de).launch | ||
org.eclipse.jgit.core--All-Tests (Java 11).launch | ||
org.eclipse.jgit.core--All-Tests.launch | ||
org.eclipse.jgit.test-WalkEncryptionTest-Proxy.launch | ||
org.eclipse.jgit.test-WalkEncryptionTest.launch | ||
plugin.properties | ||
pom.xml | ||
tests.bzl |