[ruby-cvs:69989] shugo:r62857 (trunk): io.c: Methods of File should not invoke external commands

shugo at ruby-lang.org shugo at ruby-lang.org
Tue Mar 20 18:09:49 JST 2018


shugo	2018-03-20 18:09:49 +0900 (Tue, 20 Mar 2018)

  New Revision: 62857

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62857

  Log:
    io.c: Methods of File should not invoke external commands
    
    For security reasons, File.read, File.binread, File.write, File.binwrite,
    File.foreach, and File.readlines should not invoke external commands even
    if the path starts with the pipe character |.
    [ruby-core:84495] [Feature #14245]

  Modified files:
    trunk/NEWS
    trunk/io.c
    trunk/test/ruby/test_io.rb


More information about the ruby-cvs mailing list