Skip to content

Commit 1b5e93c

Browse files
committed
merge revision(s) 17756:
* array.c (rb_ary_fill): check if beg is too big. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 47dfdac commit 1b5e93c

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Tue Jul 1 15:09:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
2+
3+
* array.c (rb_ary_fill): check if beg is too big.
4+
15
Mon Jun 30 20:34:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
26

37
* string.c (str_buf_cat): check for self concatenation.

array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2275,7 +2275,7 @@ rb_ary_fill(argc, argv, ary)
22752275
if (len < 0) {
22762276
return ary;
22772277
}
2278-
if (len > ARY_MAX_SIZE - beg) {
2278+
if (beg >= ARY_MAX_SIZE || len > ARY_MAX_SIZE - beg) {
22792279
rb_raise(rb_eArgError, "argument too big");
22802280
}
22812281
end = beg + len;

version.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
#define RUBY_VERSION "1.8.6"
2-
#define RUBY_RELEASE_DATE "2008-06-30"
2+
#define RUBY_RELEASE_DATE "2008-07-01"
33
#define RUBY_VERSION_CODE 186
4-
#define RUBY_RELEASE_CODE 20080630
5-
#define RUBY_PATCHLEVEL 256
4+
#define RUBY_RELEASE_CODE 20080701
5+
#define RUBY_PATCHLEVEL 257
66

77
#define RUBY_VERSION_MAJOR 1
88
#define RUBY_VERSION_MINOR 8
99
#define RUBY_VERSION_TEENY 6
1010
#define RUBY_RELEASE_YEAR 2008
11-
#define RUBY_RELEASE_MONTH 6
12-
#define RUBY_RELEASE_DAY 30
11+
#define RUBY_RELEASE_MONTH 7
12+
#define RUBY_RELEASE_DAY 1
1313

1414
#ifdef RUBY_EXTERN
1515
RUBY_EXTERN const char ruby_version[];
1616
RUBY_EXTERN const char ruby_release_date[];
1717
RUBY_EXTERN const char ruby_platform[];
1818
RUBY_EXTERN const int ruby_patchlevel;
1919
#endif
20+

0 commit comments

Comments
 (0)