Summary

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

Metadata

Attachments

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

Changes and comments

[2019-03-21 03:30:40 UTC] dieggsy changed component from core libraries to extensions

[2019-08-27 16:40:02 UTC] dieggsy set milestone to someday

[2021-02-27 03:12:57 UTC] dieggsy attached srfi-13.patch (description=#f)

[2021-02-27 03:13:38 UTC] dieggsy wrote:

I believe the attached patch fixes the issue.

[2021-03-04 04:40:20 UTC] dieggsy set difficulty to easy

[2021-03-04 04:40:20 UTC] dieggsy changed milestone from someday to 5.3

[2021-03-06 16:26:06 UTC] dieggsy changed milestone from 5.3 to someday

[2021-03-13 16:08:29 UTC] kooda changed status from new to closed

[2021-03-13 16:08:29 UTC] kooda set resolution to fixed

[2021-03-13 16:08:29 UTC] kooda wrote:

Fixed in 0.3.1, thanks for the patch!