Opened 7 years ago
Closed 5 years ago
#1590 closed defect (fixed)
xsubstring with `to' argument less than string length results in a crash
| Reported by: | Diego | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | someday |
| Component: | extensions | Version: | 5.0.0 |
| Keywords: | srfi13, xsubstring | Cc: | |
| Estimated difficulty: | easy |
Description
I would expect:
(xsubstring "foo" 0 2) => "fo"
But I get:
#;4> (xsubstring "foo" 0 2) [panic] Detected corrupted data in stack - execution terminated <syntax> <eval> <--
Attachments (1)
Change History (7)
comment:1 Changed 7 years ago by
| Component: | core libraries → extensions |
|---|
comment:2 Changed 6 years ago by
| Milestone: | → someday |
|---|
Changed 5 years ago by
| Attachment: | srfi-13.patch added |
|---|
comment:3 Changed 5 years ago by
comment:4 Changed 5 years ago by
| Estimated difficulty: | → easy |
|---|---|
| Milestone: | someday → 5.3 |
comment:5 Changed 5 years ago by
| Milestone: | 5.3 → someday |
|---|
comment:6 Changed 5 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Fixed in 0.3.1, thanks for the patch!
Note: See
TracTickets for help on using
tickets.

I believe the attached patch fixes the issue.