Issue Details (XML | Word | Printable)

Key: CODEC-80
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Julius Davies
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Codec

Regression: Base64.encode(chunk=true) has bug when input length is multiple of 76

Created: 23/Jul/09 05:50 AM   Updated: 24/Jul/09 12:43 AM
Return to search
Component/s: None
Affects Version/s: 1.4
Fix Version/s: 1.4

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works codec80-the-fix.patch 2009-07-23 06:06 AM Julius Davies 0.8 kB
Text File Licensed for inclusion in ASF works codec80-to-make-junit-fail.patch 2009-07-23 06:06 AM Julius Davies 8 kB

Resolution Date: 24/Jul/09 12:43 AM


 Description  « Hide
Regression: Base64.encode(chunk=true) has bug when input length is multiple of 76

The resulting array is correct except there are two extra 0 bytes appended to the end.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Julius Davies added a comment - 23/Jul/09 06:06 AM
Two patches attached:

1. codec80-to-make-junit-fail.patch
2. codec80-the-fix.patch


Gary Gregory added a comment - 24/Jul/09 12:43 AM
Patch committed with small changes. Thank you Julius.