[#688] mkmf.rb - add files to clean and distclean targets — Michal Rokos <michal@...>

Hi,

25 messages 2003/01/15
[#722] Re: [RFC] mkmf.rb - add files to clean and distclean targets — Mathieu Bouchard <matju@...> 2003/01/20

On Thu, 16 Jan 2003, Michal Rokos wrote:

[#740] Re: [RFC] mkmf.rb - add files to clean and distclean targets — matz@... (Yukihiro Matsumoto) 2003/01/21

Hi,

[#724] Symbols: More Functionality Wanted — Ryan Pavlik <rpav@...>

I've been discussing this for a bit on #ruby-lang on OPN (or freenode or

23 messages 2003/01/20
[#728] Re: Symbols: More Functionality Wanted — matz@... (Yukihiro Matsumoto) 2003/01/20

Hi,

[#743] Re: Symbols: More Functionality Wanted — "Pit Capitain" <pit@...> 2003/01/21

On 20 Jan 2003 at 15:49, Yukihiro Matsumoto wrote:

[#767] Re: Symbols: More Functionality Wanted — Mathieu Bouchard <matju@...> 2003/01/22

[#768] Re: Symbols: More Functionality Wanted — dblack@... 2003/01/22

Hi --

[#779] Re: Symbols: More Functionality Wanted — Gavin Sinclair <gsinclair@...> 2003/01/23

On Thursday, January 23, 2003, 6:28:04 AM, dblack wrote:

IO#read bug: patch

From: Mathieu Bouchard <matju@...>
Date: 2003-01-02 04:57:08 UTC
List: ruby-core #675


with ruby-1.8.0.pre3 (or whatever was in the cvs tonight) :



File.open("/dev/zero").read(1<<24,"").length
(eval):1: [BUG] Segmentation fault
ruby 1.8.0 (2003-01-02) [i586-linux]
Abandon (core dumped)



cvs diff io.c 
Index: io.c
===================================================================
RCS file: /src/ruby/io.c,v
retrieving revision 1.175
diff -u -r1.175 io.c
--- io.c        21 Dec 2002 18:02:00 -0000      1.175
+++ io.c        2 Jan 2003 04:55:08 -0000
@@ -829,6 +829,9 @@
            rb_str_resize(str, 0);
            return str;
        }
+       if (len > RSTRING(str)->len) {
+           rb_str_resize(str,len);
+       }
     }
 
     READ_CHECK(fptr->f);



________________________________________________________________
Mathieu Bouchard                       http://artengine.ca/matju


In This Thread

Prev Next