Opened 4 years ago

Closed 23 months 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


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 Diego 2 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 4 years ago by Diego

Component: core librariesextensions

comment:2 Changed 3 years ago by Diego

Milestone: someday

Changed 2 years ago by Diego

Attachment: srfi-13.patch added

comment:3 Changed 2 years ago by Diego

I believe the attached patch fixes the issue.

comment:4 Changed 2 years ago by Diego

Estimated difficulty: easy
Milestone: someday5.3

comment:5 Changed 2 years ago by Diego

Milestone: 5.3someday

comment:6 Changed 23 months ago by Kooda

Resolution: fixed
Status: newclosed

Fixed in 0.3.1, thanks for the patch!

Note: See TracTickets for help on using tickets.