aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib
diff options
context:
space:
mode:
authorChristian Halstrick <christian.halstrick@sap.com>2015-09-17 16:11:39 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2015-09-17 23:22:14 +0200
commitf4596284a092dd3143b4c55704258aa1c47c410b (patch)
tree6886490aa458e24d1e522c7799ae5f7a74cfa94e /org.eclipse.jgit.test/tst/org/eclipse/jgit/lib
parent868899982bd6aa8aebec857436d2f71546a8ed7a (diff)
downloadjgit-f4596284a092dd3143b4c55704258aa1c47c410b.tar.gz
jgit-f4596284a092dd3143b4c55704258aa1c47c410b.zip
Fix endless loop in ObjectChecker for MacOS
Bug: 477090 Change-Id: I0ba416f1cc172a835dd2723ff7fa904597ffd097 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse/jgit/lib')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ObjectCheckerTest.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ObjectCheckerTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ObjectCheckerTest.java
index 274757d95d..3abe81cf85 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ObjectCheckerTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ObjectCheckerTest.java
@@ -1810,6 +1810,17 @@ public class ObjectCheckerTest {
}
@Test
+ public void testBug477090() throws CorruptObjectException {
+ checker.setSafeForMacOS(true);
+ final byte[] bytes = {
+ // U+221E 0xe2889e INFINITY ∞
+ (byte) 0xe2, (byte) 0x88, (byte) 0x9e,
+ // .html
+ 0x2e, 0x68, 0x74, 0x6d, 0x6c };
+ checker.checkPathSegment(bytes, 0, bytes.length);
+ }
+
+ @Test
public void testRejectDotAtEndOnWindows() {
checker.setSafeForWindows(true);
try {