From 3ae4fd7258fe518327a0ceb69c292eddbabfb995 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 19 Feb 2001 07:03:06 +0000 Subject: * eval.c (secure_visibility): visibility check for untainted modules. * signal.c (sigpipe): sighandler which does nothing. * signal.c (trap): set sigpipe function for SIGPIPE. * signal.c (Init_signal): default SIGPIPE handler should be sigpipe function. * array.c (rb_ary_subseq): wrong boundary check. * parse.y (cond0): integer literal in condition should not be compared to lineno ($.). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'array.c') diff --git a/array.c b/array.c index 768b7e8ffe..e18fb3d8f5 100644 --- a/array.c +++ b/array.c @@ -400,7 +400,7 @@ rb_ary_subseq(ary, beg, len) { VALUE ary2; - if (beg > RARRAY(ary)->len) return Qnil; + if (beg >= RARRAY(ary)->len) return Qnil; if (beg < 0 || len < 0) return Qnil; if (beg + len > RARRAY(ary)->len) { -- cgit v1.2.3