Skip to content

Commit 0148ae4

Browse files
committed
Adding unit test for CODEC-68. Passes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@653098 13f79535-47bb-0310-9956-ffa450edef68
1 parent 8e90d48 commit 0148ae4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/test/org/apache/commons/codec/binary/Base64Test.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,4 +711,12 @@ public Random getRandom() {
711711
return this._random;
712712
}
713713

714+
/**
715+
* CODEC-68: isBase64 throws ArrayIndexOutOfBoundsException on some non-BASE64 bytes
716+
*/
717+
public void testCodec68() {
718+
byte[] x = new byte[] { 'n', 'A', '=', '=', (byte) 0x9c };
719+
Base64.decodeBase64(x);
720+
}
721+
714722
}

0 commit comments

Comments
 (0)