[Bug #1789] TCPSocket#read returns untainted string

Bug #1789: TCPSocket#read returns untainted string
http://redmine.ruby-lang.org/issues/show/1789

e$B5/I<<Te(B: Masahiro T.
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
e$B%+%F%4%je(B: ext
ruby -v: 1.9.2dev (2009-07-19 trunk 24201) [i686-linux]

e$B$H$_$?$G$9!#e(B

TCPSocket#read e$B$,e(B untainted e$BJ8;zNs$rJV$7$^$9!#e(B

$ ruby -v -rsocket -e ‘p TCPSocket.new(“localhost”,25).read(4).tainted?’
ruby 1.9.2dev (2009-07-19 trunk 24201) [i686-linux]
false

1.8.7 e$B$G$Oe(B tainted e$B$G$9!#e(B

$ ruby -v -rsocket -e ‘p TCPSocket.new(“localhost”,25).read(4).tainted?’
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
true

e$B$A$J$_$Ke(B TCPSocket#gets e$B$Oe(B tainted e$B$K$J$j$^$9!#e(B

$ /usr/local/ruby-1.9.1/bin/ruby -v -rsocket -e ‘p
TCPSocket.new(“localhost”,25).gets.tainted?’
ruby 1.9.2dev (2009-07-19 trunk 24201) [i686-linux]
true

e$B%A%1%C%He(B #1789 e$B$,99?7$5$l$^$7$?!#e(B (by Nobuyoshi N.)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

Applied in changeset r24203.

http://redmine.ruby-lang.org/issues/show/1789

e$B%A%1%C%He(B #1789 e$B$,99?7$5$l$^$7$?!#e(B (by Yuki S.)

e$B%9%F!<%?%9e(B Assignede$B$+$ie(BClosede$B$KJQ99e(B

Applied in changeset r24290.

http://redmine.ruby-lang.org/issues/show/1789

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs