Actions
Bug #7573
closedconst_get の引数検査が甘い
Description
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
Updated by nobu (Nobuyoshi Nakada) about 12 years ago
- % Done changed from 0 to 50
Updated by ko1 (Koichi Sasada) about 12 years ago
- Assignee set to Glass_saga (Masaki Matsushita)
Updated by tarui (Masaya Tarui) about 12 years ago
- Status changed from Open to Assigned
Updated by nobu (Nobuyoshi Nakada) almost 12 years ago
- Status changed from Assigned to Closed
- % Done changed from 50 to 100
This issue was solved with changeset r38551.
tadayoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
object.c: check more strictly
- object.c (rb_mod_const_get): check more strictly. [ruby-dev:46748]
[Bug #7573]
Actions
Like0
Like0Like0Like0Like0