Project

General

Profile

Actions

Bug #7573

closed

const_get の引数検査が甘い

Added by tadf (tadayoshi funaba) almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
ruby 2.0.0dev (2012-12-16 trunk 38415) [i686-linux]
Backport:
[ruby-dev:46748]

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

Actions

Also available in: Atom PDF