Opened 2 years ago

Closed 4 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

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)

srfi-13.patch (1.5 KB) - added by Diego 5 months ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 2 years ago by Diego

Component: core librariesextensions

comment:2 Changed 2 years ago by Diego

Milestone: someday

Changed 5 months ago by Diego

Attachment: srfi-13.patch added

comment:3 Changed 5 months ago by Diego

I believe the attached patch fixes the issue.

comment:4 Changed 5 months ago by Diego

Estimated difficulty: easy
Milestone: someday5.3

comment:5 Changed 5 months ago by Diego

Milestone: 5.3someday

comment:6 Changed 4 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.