[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strange reader bug (string->number)
From: |
Andy Wingo |
Subject: |
Re: Strange reader bug (string->number) |
Date: |
Tue, 04 Aug 2009 20:38:02 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) |
Hi Kjetil,
On Sun 02 Aug 2009 15:26, "Kjetil S. Matheussen" <address@hidden> writes:
> The following bug causes some problems
> with Snd: (At least the realtime extension of Snd)
>
>
> *****************************
> $ echo "'(4194304 262144 1.0f)" >test.scm
> $ guile -l test.scm
Fixed in 1.9, and backported to 1.8. Thanks for the report!
commit ee0ddd21211757664092eaec631c4c76f4aae74f
Author: Andy Wingo <address@hidden>
Date: Tue Aug 4 20:29:09 2009 +0200
fix buffer overrun reading partial numbers: 1.0f, 1.0/, and 1.0+
* libguile/numbers.c (mem2decimal_from_point, mem2ureal, mem2complex):
Fix a number of cases where, for invalid numbers, we could read past
the end of the buffer. This happened in e.g. "1.0+", "1/" and "1.0f".
But I couldn't figure out how to test for these, given that the
behavior depended on the contents of uninitialized memory in the
reader buffer. We'll just have to be happy with this.
Thanks to Kjetil S. Matheussen for the report.
Andy
--
http://wingolog.org/