clojure.data.codec

Cannot roundtrip an empty array

Details

  • Type: Defect Defect
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    0.1.0

Description

The following throws an ArrayIndexOutOfBoundsException:

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

Activity

Hide
Gary Fredericks added a comment -

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.

Show
Gary Fredericks added a comment - 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.
Hide
Alexander Taggart added a comment -

Fix was released in v0.1.1.

Show
Alexander Taggart added a comment - Fix was released in v0.1.1.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: