Return-Path: Delivered-To: apmail-commons-commits-archive@locus.apache.org Received: (qmail 28570 invoked from network); 3 May 2008 17:25:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 May 2008 17:25:59 -0000 Received: (qmail 9557 invoked by uid 500); 3 May 2008 17:25:59 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 9539 invoked by uid 500); 3 May 2008 17:25:59 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 9528 invoked by uid 99); 3 May 2008 17:25:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 May 2008 10:25:59 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 May 2008 17:25:23 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 5F01D2388A08; Sat, 3 May 2008 10:25:37 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@commons.apache.org From: bayard@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080503172537.5F01D2388A08@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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); + } + }