Issue #7573 has been reported by tadf (tadayoshi funaba).

----------------------------------------
Bug #7573: const_get の引数検査が甘い
https://bugs.ruby-lang.org/issues/7573

Author: tadf (tadayoshi funaba)
Status: Open
Priority: Low
Assignee: 
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-12-16 trunk 38415) [i686-linux]


const_get の引数検査が甘い。

$ ruby -v -e '::FOO = 9; p Object.const_get("FOO\000")'
ruby 2.0.0dev (2012-12-16 trunk 38415) [i686-linux]
9

$ ruby -v -e '::FOO = 9; p Object.const_get("FOO::")'
ruby 2.0.0dev (2012-12-16 trunk 38415) [i686-linux]
9



-- 
http://bugs.ruby-lang.org/