diff options
author | Ludovic Courtès <ludo@gnu.org> | 2008-12-02 19:42:39 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2008-12-02 19:52:13 +0100 |
commit | 3ae3166b2307ee8588aa9b422764b486ed02ad09 (patch) | |
tree | 70092c15a1ebe07932c7a41f2bee0ccfdf35a5be /THANKS | |
parent | 691343ead288625816175574d629f8b5c925fbab (diff) | |
download | guile-3ae3166b2307ee8588aa9b422764b486ed02ad09.tar.gz |
Fix sloppy bound checking in `string-{ref,set!}' with the empty string.
* libguile/strings.c (scm_string_ref): Add proper range checking for the
empty string.
(scm_string_set_x): Likewise.
Reported by Bill Schottstaedt <bil@ccrma.Stanford.EDU>.
* test-suite/tests/strings.test ("string-ref"): New test prefix.
("string-set!")["empty string", "empty string and non-zero index",
"out of range", "negative index", "regular string"]: New tests.
* NEWS: Update.
Diffstat (limited to 'THANKS')
0 files changed, 0 insertions, 0 deletions