Skip to content

Commit 545ebec

Browse files
committed
merge revision(s) 13587:
* gc.c (id2ref): valid id should not refer T_VALUE nor T_ICLASS. [ruby-dev:31911] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@16825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent dfbf5cc commit 545ebec

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
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+
16
Wed Jun 4 16:39:56 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
27

38
* Makefile.in (ext/extinit.o): use $(OUTFLAG) as well as other

gc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1878,6 +1878,7 @@ id2ref(obj, objid)
18781878
VALUE obj, objid;
18791879
{
18801880
unsigned long ptr, p0;
1881+
int type;
18811882

18821883
rb_secure(4);
18831884
p0 = ptr = NUM2ULONG(objid);
@@ -1894,7 +1895,8 @@ id2ref(obj, objid)
18941895
return ID2SYM(symid);
18951896
}
18961897

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) {
18981900
rb_raise(rb_eRangeError, "0x%lx is not id value", p0);
18991901
}
19001902
if (BUILTIN_TYPE(ptr) == 0 || RBASIC(ptr)->klass == 0) {

version.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#define RUBY_VERSION "1.8.5"
2-
#define RUBY_RELEASE_DATE "2008-06-04"
2+
#define RUBY_RELEASE_DATE "2008-06-05"
33
#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
66

77
#define RUBY_VERSION_MAJOR 1
88
#define RUBY_VERSION_MINOR 8
99
#define RUBY_VERSION_TEENY 5
1010
#define RUBY_RELEASE_YEAR 2008
1111
#define RUBY_RELEASE_MONTH 6
12-
#define RUBY_RELEASE_DAY 4
12+
#define RUBY_RELEASE_DAY 5
1313

1414
#ifdef RUBY_EXTERN
1515
RUBY_EXTERN const char ruby_version[];

0 commit comments

Comments
 (0)