| Ticket UUID: | 5465d70388dca48916ec50cdfd58959854bbdf3e | |||
| Title: | Off-by-one end-relative seeking in memchan/string/variable refchans | |||
| Type: | Bug | Version: | 78d7722e1e93b795aa305756c83da3b63f820e8d | |
| Submitter: | andy | Created on: | 2017-08-02 01:17:07 | |
| Subsystem: | virtchannel base | Assigned To: | aku | |
| Priority: | 8 | Severity: | Important | |
| Status: | Closed | Last Modified: | 2017-08-08 01:21:22 | |
| Resolution: | Fixed | Closed By: | aku | |
| Closed on: | 2017-08-08 01:21:22 | |||
| Description: |
End-relative seeking in memchan, string, and variable refchans ends up at one byte before the requested position. [seek $chan 0 end; tell $chan] should return the "file size", i.e. underlying string length, but for these types of channels, it gives one less than the file size. | |||
| User Comments: |
aku added on 2017-08-08 01:21:22:
Fixed with commit [bdce7f7a76]. Merged with commit [501a905042]. Versions bumped. Initial testsuites made for the troubled channels. aku added on 2017-08-08 00:38:21: Bah. These channels do not have testsuites, at all. For now I will make something which just gets me this ticket fixed. Then a new ticket will point to the lack of a testsuite. | |||
Attachments:
- refchan.patch [download] added by andy on 2017-08-02 01:17:51. [details]
