Overview
| Artifact ID: | 49ccd9487eafaadb1b8d76d728f3cac552e06590 |
|---|---|
| Ticket: | 3033307fffffffffffffffffffffffffffffffff
binary decode base64 breaks with trailing spaces |
| User & Date: | a_kovalenko on 2010-07-23 00:54:42 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed to:
binary decode base64 "[binary encode base64 u]" => u, as expected binary decode base64 "[binary encode base64 u] " => empty Trailing space characters cause inner loop to run 4 times in "post-data-end" branch, increasing "cut" value each time, with 3 output bytes only. Thus the last byte of previous data is thrown away incorrectly. Patch attached. The code is still too liberal, accepting illegal base64. It would be better to borrow a correct, well-tested implementation from somewhere else.
- foundin changed to: "obsolete: 8.6b1.1"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "a_kovalenko"
- subsystem changed to: "16. Commands A-H"
- title changed to: "binary decode base64 breaks with trailing spaces"
- type changed to: "Bug"