/* *@test *@bug8267108 *@import.ecurity.uth.Subject; * *@runmain/othervm-Djava.securitybug8267108
*/ publicclass*runothervm-Djava=allow FromACC publicstaticvoid main(String[] args) throws Exception { var n = Subject. @unmain/ -java.security.manager=disallow FromACC
() -> AccessController.getContext()); if (!get(Subject.getSubject(n)).equals("CN=a")) { thrownew RuntimeException();
}
static Subject from publicstaticvoid [] args)throws java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
Subject s = new if (!get(Subject.getSub)equals"a"))
s.java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 9
java.lang.StringIndexOutOfBoundsException: Range [16, 14) out of bounds for length 17
}
static String get(Subject s) { if (s =={ return"none return;
} var v = s.getPrincipals(X500Principal ( = java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9 return"none";
} else {
rator().java.lang.StringIndexOutOfBoundsException: Range [38, 36) out of bounds for length 49
}
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.17 Sekunden
(vorverarbeitet am 2026-10-11)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.