[#30549] [ANN] Ruby 1.8.6 has been released — "Akinori MUSHA" <knu@...>

 Ruby 1.8.6 をリリースしました。

14 messages 2007/03/12

[#30553] help: lib/shell for ruby 1.9 — keiju@... (Keiju ISHITSUKA)

けいじゅ@いしつかです.

13 messages 2007/03/13
[#30585] Re: help: lib/shell for ruby 1.9 — Yukihiro Matsumoto <matz@...> 2007/03/15

まつもと ゆきひろです

[#30587] Re: help: lib/shell for ruby 1.9 — keiju@... (石塚圭樹) 2007/03/15

けいじゅ@いしつかです.

[#30588] Re: help: lib/shell for ruby 1.9 — Yukihiro Matsumoto <matz@...> 2007/03/15

まつもと ゆきひろです

[ruby-dev:30471] Re: NEWS is added

From: "Akinori MUSHA" <knu@...>
Date: 2007-03-03 09:49:16 UTC
List: ruby-dev #30471
At Fri, 2 Mar 2007 08:41:29 +0900,
とみたまさひろ wrote:
> NEWS に書くべきものかどうかわからなかったのですが、個人的にちょっとは
> まったので…。
>
>  * taint 文字列の intern が SecurityError 例外が発生するように変更された。
>
>    $ ./ruby -v -e '$SAFE=1; p "hoge".taint.intern'
>    ruby 1.8.5 (2006-12-25 patchlevel 12) [i686-linux]
>    :hoge
>
>    $ ./ruby -v -e '$SAFE=1; p "hoge".taint.intern'
>    ruby 1.8.6 (2007-02-24 patchlevel 0) [i686-linux]
>    -e:1:in `intern': Insecure: can't intern tainted string (SecurityError)
>            from -e:1
>
> # 英語は書けません (__;

 ご指摘ありがとうございます。ChangeLog の以下のエントリの修正ですね。

* string.c (rb_str_intern): raise SecurityError only when $SAFE
  level is greater than zero.  [ruby-core:08862]

 入れておきます。

--
                     /
                    /__  __            Akinori.org / MUSHA.org
                   / )  )  ) )  /     FreeBSD.org / Ruby-lang.org
Akinori MUSHA aka / (_ /  ( (__(  @ iDaemons.org / and.or.jp

"Different eyes see different things,
    Different hearts beat on different strings --
       But there are times for you and me when all such things agree"

In This Thread