Skip to content

Commit b80f4d2

Browse files
committed
fixed escape loop check relates to github #1215
1 parent 02b8ecb commit b80f4d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/bouncycastle/asn1/x500/style/IETFUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ public static String valueToString(ASN1Encodable value)
424424

425425
int endBuf = vBuf.length() - 1;
426426

427-
while (endBuf >= 0 && vBuf.charAt(endBuf) == ' ')
427+
while (endBuf >= start && vBuf.charAt(endBuf) == ' ')
428428
{
429429
vBuf.insert(endBuf, '\\');
430430
endBuf--;

0 commit comments

Comments
 (0)