File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change
1
+ Thu Jun 5 12:21:06 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
2
+
3
+ * gc.c (id2ref): valid id should not refer T_VALUE nor T_ICLASS.
4
+ [ruby-dev:31911]
5
+
1
6
Wed Jun 4 16:39:56 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
2
7
3
8
* Makefile.in (ext/extinit.o): use $(OUTFLAG) as well as other
Original file line number Diff line number Diff line change @@ -1878,6 +1878,7 @@ id2ref(obj, objid)
1878
1878
VALUE obj , objid ;
1879
1879
{
1880
1880
unsigned long ptr , p0 ;
1881
+ int type ;
1881
1882
1882
1883
rb_secure (4 );
1883
1884
p0 = ptr = NUM2ULONG (objid );
@@ -1894,7 +1895,8 @@ id2ref(obj, objid)
1894
1895
return ID2SYM (symid );
1895
1896
}
1896
1897
1897
- if (!is_pointer_to_heap ((void * )ptr )|| BUILTIN_TYPE (ptr ) >= T_BLKTAG ) {
1898
+ if (!is_pointer_to_heap ((void * )ptr )||
1899
+ (type = BUILTIN_TYPE (ptr )) >= T_BLKTAG || type == T_ICLASS ) {
1898
1900
rb_raise (rb_eRangeError , "0x%lx is not id value" , p0 );
1899
1901
}
1900
1902
if (BUILTIN_TYPE (ptr ) == 0 || RBASIC (ptr )-> klass == 0 ) {
Original file line number Diff line number Diff line change 1
1
#define RUBY_VERSION "1.8.5"
2
- #define RUBY_RELEASE_DATE "2008-06-04 "
2
+ #define RUBY_RELEASE_DATE "2008-06-05 "
3
3
#define RUBY_VERSION_CODE 185
4
- #define RUBY_RELEASE_CODE 20080604
5
- #define RUBY_PATCHLEVEL 126
4
+ #define RUBY_RELEASE_CODE 20080605
5
+ #define RUBY_PATCHLEVEL 127
6
6
7
7
#define RUBY_VERSION_MAJOR 1
8
8
#define RUBY_VERSION_MINOR 8
9
9
#define RUBY_VERSION_TEENY 5
10
10
#define RUBY_RELEASE_YEAR 2008
11
11
#define RUBY_RELEASE_MONTH 6
12
- #define RUBY_RELEASE_DAY 4
12
+ #define RUBY_RELEASE_DAY 5
13
13
14
14
#ifdef RUBY_EXTERN
15
15
RUBY_EXTERN const char ruby_version [];
You can’t perform that action at this time.
0 commit comments