[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-janitors] #1631: srfi-13 string-pad segfaults when argument
From: |
Chicken Trac |
Subject: |
Re: [Chicken-janitors] #1631: srfi-13 string-pad segfaults when arguments are not of the right type |
Date: |
Sun, 04 Aug 2019 11:59:35 -0000 |
#1631: srfi-13 string-pad segfaults when arguments are not of the right type
-----------------------------------+---------------------
Reporter: kooda | Owner:
Type: defect | Status: new
Priority: major | Milestone: 5.2
Component: extensions | Version:
Resolution: | Keywords: srfi-13
Estimated difficulty: |
-----------------------------------+---------------------
Comment (by sjamaan):
This is a bug in `##sys#check-exact`. It will fail anywhere it's used. In
core there's currently two places remaining that use it: pointer-vector-
ref and pointer-vector-set!
{{{
(import (chicken memory))
(pointer-vector-ref (make-pointer-vector 2) #\space) ; segfault
}}}
Actually, I think all these uses are bogus: an exact complex number is not
a valid index into a vector or string. So probably it's better to get rid
of `##sys#check-exact` altogether.
--
Ticket URL: <https://bugs.call-cc.org/ticket/1631#comment:2>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.