Ticket UUID: | b98fa55285ce197ef7bd119e4e937b78be77af4a | |||
Title: | binary decode hex loses a byte in a file with whitespaces | |||
Type: | Bug | Version: | 8.6.0 | |
Submitter: | anonymous | Created on: | 2013-07-05 03:54:24 | |
Subsystem: | 12. ByteArray Object | Assigned To: | dkf | |
Priority: | 7 High | Severity: | Important | |
Status: | Closed | Last Modified: | 2013-09-01 20:10:08 | |
Resolution: | Fixed | Closed By: | dkf | |
Closed on: | 2013-09-01 20:10:08 | |||
Description: |
The attached hex string has a few whitespaces in it. Notice that it ends with two bytes: 0000. However, after passing this string to 'binary decode hex', the last 00 bytes gets lost in my machine. It is always reproducible. If I remove the whitespaces (including line endings) from the string, this doesn't happen: I get the two 00 bytes at the end (expected behavior). | |||
User Comments: |
dkf added on 2013-09-01 20:10:08:
The problem was whitespace at the end of the string to decode. I think. I found that I could duplicate the problem with much smaller strings too. dgp added on 2013-07-05 18:56:15: passing to one of the [binary] maintainers. |
Attachments:
- hex.txt [download] added by anonymous on 2013-07-05 03:55:18. [details]