1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* encoding.c (require_enc): reject only loading from untrusted

load paths.  [ruby-dev:44541] [Bug #5279]
* transcode.c (load_transcoder_entry): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-09-25 07:54:35 +00:00
parent 256f355af5
commit fecda0d9f7
4 changed files with 12 additions and 3 deletions

View file

@ -102,6 +102,6 @@ class TestEncoding < Test::Unit::TestCase
def test_unsafe
bug5279 = '[ruby-dev:44469]'
assert_ruby_status([], '$SAFE=3; "a".encode("utf-16be")', bug5279)
assert_ruby_status([], '$SAFE=4; "a".encode("utf-16be")', bug5279)
end
end