ruby-changes:10315
From: usa <ko1@a...>
Date: Wed, 28 Jan 2009 22:55:32 +0900 (JST)
Subject: [ruby-changes:10315] Ruby:r21859 (trunk): * ext/zlib/zlib.c (zstream_run): desperately guard the variable.
usa 2009-01-28 22:55:13 +0900 (Wed, 28 Jan 2009) New Revision: 21859 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21859 Log: * ext/zlib/zlib.c (zstream_run): desperately guard the variable. [ruby-core:20576] Modified files: trunk/ChangeLog trunk/ext/zlib/zlib.c Index: ChangeLog =================================================================== --- ChangeLog (revision 21858) +++ ChangeLog (revision 21859) @@ -1,3 +1,8 @@ +Wed Jan 28 22:51:12 2009 NAKAMURA Usaku <usa@r...> + + * ext/zlib/zlib.c (zstream_run): desperately guard the variable. + [ruby-core:20576] + Wed Jan 28 15:24:11 2009 TAKANO Mitsuhiro (takano32) <tak@n...> * math.c: SEGV is caused by implicit rb_to_float declaration Index: ext/zlib/zlib.c =================================================================== --- ext/zlib/zlib.c (revision 21858) +++ ext/zlib/zlib.c (revision 21859) @@ -708,7 +708,7 @@ /* keep reference to `z->input' so as not to be garbage collected after zstream_reset_input() and prevent `z->stream.next_in' from dangling. */ - guard = z->input; + RB_GC_GUARD(guard) = z->input; } if (z->stream.avail_out == 0) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/