Invalid instance/class variable and constant names may be set
--------------------------------------------------------------
Key: JRUBY-1295
URL: http://jira.codehaus.org/browse/JRUBY-1295
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Reporter: Bill Dortch
Assignee: Bill Dortch
Fix For: JRuby 1.0.2, JRuby 1.1.0, JRuby 1.x
The IdUtil.isXXX methods do not sufficiently validate names passed to
const_set, instance_variable_set and class_variable_set. (Likewise for the get
methods, but that's less problematic.) So, for example, the following are
currently accepted:
{code}
mod.const_set 'A nice, long phrase!', 86
obj.instance_variable_set '@1 * @2 / @3 =', 4
clazz.send :class_variable_set, '@@@@@@@@', 99
{code}
I've got a fix in the works, part of other ivar/cvar/constant work.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email