commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r653098 - /commons/proper/codec/trunk/src/test/org/apache/commons/codec/binary/Base64Test.java
Date Sat, 03 May 2008 17:25:37 GMT
Author: bayard
Date: Sat May  3 10:25:37 2008
New Revision: 653098

URL: http://svn.apache.org/viewvc?rev=653098&view=rev
Log:
Adding unit test for CODEC-68. Passes. 

Modified:
    commons/proper/codec/trunk/src/test/org/apache/commons/codec/binary/Base64Test.java

Modified: commons/proper/codec/trunk/src/test/org/apache/commons/codec/binary/Base64Test.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/test/org/apache/commons/codec/binary/Base64Test.java?rev=653098&r1=653097&r2=653098&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/test/org/apache/commons/codec/binary/Base64Test.java (original)
+++ commons/proper/codec/trunk/src/test/org/apache/commons/codec/binary/Base64Test.java Sat
May  3 10:25:37 2008
@@ -711,4 +711,12 @@
         return this._random;
     }
 
+    /**
+     * CODEC-68: isBase64 throws ArrayIndexOutOfBoundsException on some non-BASE64 bytes
+     */
+    public void testCodec68() {
+        byte[] x = new byte[] { 'n', 'A', '=', '=', (byte) 0x9c };
+        Base64.decodeBase64(x);
+    }
+
 }



Mime
View raw message