Issue Details (XML | Word | Printable)

Key: CODEC-22
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Piero Ottuzzi
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Codec

[codec] Base64.isArrayByteBase64() throws an ArrayIndexOutOfBoundsException for negative octets.

Created: 24/Aug/04 08:30 PM   Updated: 27/Oct/07 06:49 AM
Return to search
Component/s: None
Affects Version/s: 1.3
Fix Version/s: 1.4

Time Tracking:
Not Specified

File Attachments:
  Size
Java Source File Test.java 2004-11-25 02:02 AM Piero Ottuzzi 0.3 kB
Environment:
Operating System: other
Platform: Other

Bugzilla Id: 30825


 Description  « Hide
If I try org.apache.commons.codec.binary.Base64.isArrayByteBase64() on a
particular byteArray I get a ArrayIndexOutOfBoundsException.

Here is the stackTrace:
java.lang.ArrayIndexOutOfBoundsException: -94
at org.apache.commons.codec.binary.Base64.isBase64(Base64.java:137)
at org.apache.commons.codec.binary.Base64.isArrayByteBase64(Base64.java:163)
at
it.injava.rosetta.manager.PacketManager.decryptPacket(PacketManager.java:41)
at it.injava.rosetta.net.MulticastListener.run(MulticastListener.java:95)
at java.lang.Thread.run(Thread.java:534)

The correct result should be 'false': absolutely the byteArray is not a Base64
stream but I want to use this method exactly to understand when byteArray is (or
it is not) a real Base64 stream.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no subversion log entries for this issue yet.