File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change
1
+ Wed Jun 3 20:54:23 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
2
+
3
+ * eval.c (rb_eval): needs to guard intermediate string objects.
4
+ based on a patch from Brent Roman <brent AT mbari.org> a
5
+ [ruby-core:22584].
6
+
1
7
Tue May 26 21:24:01 2009 URABE Shyouhei <shyouhei@ruby-lang.org>
2
8
3
9
* Makefile.in (update-rubyspec, test-rubyspec): Catch up to
Original file line number Diff line number Diff line change @@ -3898,11 +3898,13 @@ rb_eval(self, n)
3898
3898
case NODE_DREGX :
3899
3899
result = rb_reg_new (RSTRING (str )-> ptr , RSTRING (str )-> len ,
3900
3900
node -> nd_cflag );
3901
+ RB_GC_GUARD (str ); /* ensure str is not GC'd in rb_reg_new */
3901
3902
break ;
3902
3903
case NODE_DREGX_ONCE : /* regexp expand once */
3903
3904
result = rb_reg_new (RSTRING (str )-> ptr , RSTRING (str )-> len ,
3904
3905
node -> nd_cflag );
3905
3906
nd_set_type (node , NODE_LIT );
3907
+ RB_GC_GUARD (str ); /* ensure str is not GC'd in rb_reg_new */
3906
3908
node -> nd_lit = result ;
3907
3909
break ;
3908
3910
case NODE_LIT :
Original file line number Diff line number Diff line change 1
1
#define RUBY_VERSION "1.8.7"
2
- #define RUBY_RELEASE_DATE "2009-05-26 "
2
+ #define RUBY_RELEASE_DATE "2009-06-03 "
3
3
#define RUBY_VERSION_CODE 187
4
- #define RUBY_RELEASE_CODE 20090526
5
- #define RUBY_PATCHLEVEL 167
4
+ #define RUBY_RELEASE_CODE 20090603
5
+ #define RUBY_PATCHLEVEL 168
6
6
7
7
#define RUBY_VERSION_MAJOR 1
8
8
#define RUBY_VERSION_MINOR 8
9
9
#define RUBY_VERSION_TEENY 7
10
10
#define RUBY_RELEASE_YEAR 2009
11
- #define RUBY_RELEASE_MONTH 5
12
- #define RUBY_RELEASE_DAY 26
11
+ #define RUBY_RELEASE_MONTH 6
12
+ #define RUBY_RELEASE_DAY 3
13
13
14
14
#ifdef RUBY_EXTERN
15
15
RUBY_EXTERN const char ruby_version [];
@@ -28,3 +28,4 @@ RUBY_EXTERN const char *ruby_copyright;
28
28
#define RUBY_RELEASE_STR "patchlevel"
29
29
#define RUBY_RELEASE_NUM RUBY_PATCHLEVEL
30
30
31
+
You can’t perform that action at this time.
0 commit comments