<< Back to previous view

[DCODEC-4] Cannot roundtrip an empty array Created: 03/Nov/15  Updated: 21/Nov/15

Status: Open
Project: clojure.data.codec
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Gary Fredericks Assignee: Alexander Taggart
Resolution: Unresolved Votes: 0
Labels: None


Attachments: Text File DCODEC-4.patch    


The following throws an ArrayIndexOutOfBoundsException:

(-> "" .getBytes b64/encode b64/decode)

Comment by Gary Fredericks [ 21/Nov/15 3:52 PM ]

Attached DCODEC-4.patch, which adds checks for empty input on the encode and decode functions, as well as a test.check spec that catches the bug.

Generated at Thu Nov 26 20:49:39 CST 2015 using JIRA 4.4#649-r158309.