Opened 2 years ago

Closed 4 weeks ago

#1590 closed defect (fixed)

xsubstring with `to' argument less than string length results in a crash

Reported by: dieggsy Owned by:
Priority: major Milestone: someday
Component: extensions Version: 5.0.0
Keywords: srfi13, xsubstring Cc:
Estimated difficulty: easy


I would expect:

(xsubstring "foo" 0 2) => "fo"

But I get:

#;4> (xsubstring "foo" 0 2)
[panic] Detected corrupted data in stack - execution terminated

<eval>  <--

Attachments (1)

srfi-13.patch (1.5 KB) - added by dieggsy 6 weeks ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 2 years ago by dieggsy

Component: core librariesextensions

comment:2 Changed 20 months ago by dieggsy

Milestone: someday

Changed 6 weeks ago by dieggsy

Attachment: srfi-13.patch added

comment:3 Changed 6 weeks ago by dieggsy

I believe the attached patch fixes the issue.

comment:4 Changed 5 weeks ago by dieggsy

Estimated difficulty: easy
Milestone: someday5.3

comment:5 Changed 5 weeks ago by dieggsy

Milestone: 5.3someday

comment:6 Changed 4 weeks ago by Kooda

Resolution: fixed
Status: newclosed

Fixed in 0.3.1, thanks for the patch!

Note: See TracTickets for help on using tickets.