Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.3
-
None
-
Operating System: other
Platform: Other
-
30825
Description
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.