You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/08/24 15:30:20 UTC
DO NOT REPLY [Bug 30825] New: -
Under some circumstances org.apache.commons.codec.binary.Base64.isArrayByteBase64() throws a ArrayIndexOutOfBoundsException
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30825>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30825
Under some circumstances org.apache.commons.codec.binary.Base64.isArrayByteBase64() throws a ArrayIndexOutOfBoundsException
Summary: Under some circumstances
org.apache.commons.codec.binary.Base64.isArrayByteBase64
() throws a ArrayIndexOutOfBoundsException
Product: Commons
Version: 1.3 Final
Platform: Other
OS/Version: Other
Status: NEW
Severity: Major
Priority: Other
Component: Codec
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: ottuzzi@libero.it
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.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org