[erlang-bugs] base64:decode/1 fails on some inputs

mog mog-lists@REDACTED
Thu Oct 23 19:35:20 CEST 2008


On Thu, Oct 23, 2008 at 10:20:42AM -0700, Will wrote:
> Hello,
> 
> I've noticed that base64:decode/1 will fail on some inputs, although I don't
> know why or what triggers it.
> Here is a string that does however:
> 
> "+tpm7jXi9ymsOflkw7ImYaa+oJrAC/E2fueZ4QYP+\\hfuAQ0MFPLSSqDMYO/ZohCVWJOh/KwKE2F9Ea5QZJGQ=="

The string provided is not valid base64 encoded data, base64 is doing the right thing in crashing on it

Mog
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20081023/b3c5b6bc/attachment.bin>


More information about the erlang-bugs mailing list