From 9d51cf8a6a5d651c1c4dd363dbf3f4905e3f307d Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 19 Jun 2001 04:35:17 +0000 Subject: * eval.c (rb_f_require): searches ".rb" and ".so" at the same time. previous behavior (search ".rb", then ".so") has a security risk (ruby-bugs#PR140). * array.c (rb_ary_to_ary): new function to replace internal rb_Array(), which never calls to_a, but to_ary (rb_Array() might call both). [new] * regex.c (PUSH_FAILURE_POINT): push option status again. * regex.c (re_compile_pattern): avoid pushing unnecessary option_set. * eval.c (rb_load): tainted string is OK if wrapped *and* $SAFE >= 4. * eval.c (rb_thread_start_0): should not nail down higher blocks before preserving original context (i.e. should not alter original context). * eval.c (proc_yield): new method equivalent to Proc#call but no check for number of arguments. [new] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/resolv.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/resolv.rb') diff --git a/lib/resolv.rb b/lib/resolv.rb index 782501b7cc..16cf4b5c88 100644 --- a/lib/resolv.rb +++ b/lib/resolv.rb @@ -854,7 +854,7 @@ class Resolv raise DecodeError.new("limit exceed") if @limit < @index + len arr = @data.unpack("@#{@index}#{template}") @index += len - return *arr + return arr end def get_string -- cgit v1.2.3