mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* missing/strchr.c (strrchr): fixed a bug for detecting NUL in a
string. [ruby-dev:26985] * string.c (rb_str_times): should taint empty strings as well. * object.c (Init_Object): make class_variable_{get,set} public. [ruby-dev:26965] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b40d12a5f8
commit
f1efc08bb1
3 changed files with 20 additions and 8 deletions
19
ChangeLog
19
ChangeLog
|
@ -1,9 +1,15 @@
|
|||
Thu Sep 8 13:14:57 2005 Tadashi Saito <shiba@mail2.accsnet.ne.jp>
|
||||
|
||||
* missing/strchr.c (strrchr): fixed a bug in detecting NUL in a
|
||||
string. [ruby-dev:26985]
|
||||
|
||||
Wed Sep 7 17:29:27 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||
|
||||
* ext/openssl/ossl_engine.c (ossl_engine_s_by_id):
|
||||
OpenSSL::Engine.by_id calls given block before calling ENGINE_init
|
||||
(block parameter is the return value of this method itself).
|
||||
this functionality is useful to load dynamic shared engines.
|
||||
OpenSSL::Engine.by_id calls given block before calling
|
||||
ENGINE_init (block parameter is the return value of this method
|
||||
itself). this functionality is useful to load dynamic shared
|
||||
engines.
|
||||
|
||||
require "openssl"
|
||||
pkcs11 = OpenSSL::Engine.by_id("dynamic"){|e|
|
||||
|
@ -73,6 +79,13 @@ Wed Sep 7 08:35:04 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|||
* ext/etc/etc.c (setup_passwd), ext/etc/extconf.rb: pw_age might be
|
||||
char*. fixed: [ruby-core:05470]
|
||||
|
||||
Wed Sep 7 08:32:07 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* string.c (rb_str_times): should taint empty strings as well.
|
||||
|
||||
* object.c (Init_Object): make class_variable_{get,set} public.
|
||||
[ruby-dev:26965]
|
||||
|
||||
Mon Sep 5 22:28:46 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* parse.y (stmt, mlhs_node, lhs, arg, method_call): aref_args might be
|
||||
|
|
8
object.c
8
object.c
|
@ -2646,10 +2646,10 @@ Init_Object()
|
|||
rb_mod_const_missing, 1); /* in variable.c */
|
||||
rb_define_method(rb_cModule, "class_variables",
|
||||
rb_mod_class_variables, 0); /* in variable.c */
|
||||
rb_define_private_method(rb_cModule, "remove_class_variable",
|
||||
rb_mod_remove_cvar, 1); /* in variable.c */
|
||||
rb_define_private_method(rb_cModule, "class_variable_get", rb_mod_cvar_get, 1);
|
||||
rb_define_private_method(rb_cModule, "class_variable_set", rb_mod_cvar_set, 2);
|
||||
rb_define_method(rb_cModule, "remove_class_variable",
|
||||
rb_mod_remove_cvar, 1); /* in variable.c */
|
||||
rb_define_method(rb_cModule, "class_variable_get", rb_mod_cvar_get, 1);
|
||||
rb_define_method(rb_cModule, "class_variable_set", rb_mod_cvar_set, 2);
|
||||
|
||||
rb_define_method(rb_cClass, "allocate", rb_obj_alloc, 0);
|
||||
rb_define_method(rb_cClass, "new", rb_class_new_instance, -1);
|
||||
|
|
1
string.c
1
string.c
|
@ -409,7 +409,6 @@ rb_str_times(str, times)
|
|||
long i, len;
|
||||
|
||||
len = NUM2LONG(times);
|
||||
if (len == 0) return rb_str_new5(str,0,0);
|
||||
if (len < 0) {
|
||||
rb_raise(rb_eArgError, "negative argument");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue