Bug #7573

const_get の引数検査が甘い

Added by tadayoshi funaba over 1 year ago. Updated over 1 year ago.

[ruby-dev:46748]
Status:Closed
Priority:Low
Assignee:Masaki Matsushita
Category:core
Target version:2.0.0
ruby -v:ruby 2.0.0dev (2012-12-16 trunk 38415) [i686-linux] Backport:

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

Associated revisions

Revision 38551
Added by Nobuyoshi Nakada over 1 year ago

object.c: check more strictly

  • object.c (rbmodconst_get): check more strictly. [Bug #7573]

History

#1 Updated by Nobuyoshi Nakada over 1 year ago

  • % Done changed from 0 to 50

#2 Updated by Koichi Sasada over 1 year ago

  • Assignee set to Masaki Matsushita

#3 Updated by Masaya Tarui over 1 year ago

  • Status changed from Open to Assigned

#4 Updated by Nobuyoshi Nakada over 1 year 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 (rbmodconst_get): check more strictly. [Bug #7573]

Also available in: Atom PDF