Off-by-one in substring
Bug #162436 reported by
Michael D. Adams
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ikarus Scheme |
Fix Released
|
Low
|
Abdulaziz Ghuloum |
Bug Description
The R6RS standard says the start index of a substring call must be less than or equal to the string length, but your implementation throws an error when the start index is equal to the string length.
$ ikarus
Ikarus Scheme (Build 2007-11-12)
Copyright (c) 2006-2007 Abdulaziz Ghuloum
> (substring "" 0 0)
Unhandled exception
Condition components:
1. &error
2. &who: substring
3. &message: "not a valid start index"
4. &irritants: (0 "")
Changed in ikarus: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fixed in revision 1048.