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:
parent
256f355af5
commit
fecda0d9f7
4 changed files with 12 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue