ruby-changes:37435
From: nobu <ko1@a...>
Date: Fri, 6 Feb 2015 06:09:44 +0900 (JST)
Subject: [ruby-changes:37435] nobu:r49516 (trunk): security.rdoc: correction
nobu 2015-02-06 06:09:27 +0900 (Fri, 06 Feb 2015) New Revision: 49516 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49516 Log: security.rdoc: correction * doc/security.rdoc (Symbols): ID2SYM never creates new IDs bound to immortal symbols, SYM2ID may create new IDs. Modified files: trunk/doc/security.rdoc Index: doc/security.rdoc =================================================================== --- doc/security.rdoc (revision 49515) +++ doc/security.rdoc (revision 49516) @@ -75,7 +75,7 @@ They are created when modifying code: https://github.com/ruby/ruby/blob/trunk/doc/security.rdoc#L75 * defining a method (e.g. with +define_method+), * setting an instance variable (e.g. with +instance_variable_set+), * creating a variable or constant (e.g. with +const_set+) -C extensions that have not been updated and are still calling `ID2SYM` +C extensions that have not been updated and are still calling `SYM2ID` will create immortal symbols. Bugs in 2.2.0: +send+ and +__send__+ also created immortal symbols, and calling methods with keyword arguments could also create some. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/