From: Joseph Jones Date: 2015-12-17T21:06:34-07:00 Subject: [ruby-core:72275] [Ruby trunk - Bug #11767] [Open] Range#to_s and Range#inspect are not infected by the receiver --5673864a_5e884adc_16c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Joseph Jones liked your message with Boxer. On December 2, 2015 at 21:17:= 00 MST, nobu=40ruby-lang.org wrote:Issue =2311767 has been reported by No= buyoshi Nakada.----------------------------------------Bug =2311767: Rang= e=23to=5Fs and Range=23inspect are not infected by the receiverhttps://bu= gs.ruby-lang.org/issues/11767* Author: Nobuyoshi Nakada* Status: Open* Pr= iority: Normal* Assignee: * ruby -v: r52866* Backport: 2.0.0: REQUIRED, 2= .1: REQUIRED, 2.2: REQUIRED----------------------------------------In gen= eral, =60to=5Fs=60 and =60inspect=60 on a tainted object should result a = tainted string.=60Range=60 seems the only exception.=23=23 code=7E=7E=7Er= ubyp (=220=22.taint..=221=22).to=5Fs.tainted=3Fp (=220=22..=221=22.taint)= .to=5Fs.tainted=3Fp (=220=22..=221=22).taint.to=5Fs.tainted=3F=7E=7E=7E=23= =23 expected resultprints =60true=60 3 times.=23=23 actual resultprints =60= true=60, =60true=60, and =60false=60.-- https://bugs.ruby-lang.org/ --5673864a_5e884adc_16c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Joseph Jones liked your message with Boxer.


= On December 2, 2015 at 21:17:00 MST, nobu=40ruby-lang.org wrote:
Issue =2311767 has been report= ed by Nobuyoshi Nakada.

--------------------------------------= --
Bug =2311767: Range=23to=5Fs and Range=23inspect are not infected= by the receiver
https://bugs.ruby-lang.org/issues/11767

= * Author: Nobuyoshi Nakada
* Status: Open
* Priority: Normal* Assignee:
* ruby -v: r52866
* Backport: 2.0.0: REQUIRED, = 2.1: REQUIRED, 2.2: REQUIRED
---------------------------------------= -
In general, =60to=5Fs=60 and =60inspect=60 on a tainted object sho= uld result a tainted string.
=60Range=60 seems the only exception.
=23=23 code
=7E=7E=7Eruby
p (=220=22.taint..=221=22).= to=5Fs.tainted=3F
p (=220=22..=221=22.taint).to=5Fs.tainted=3F
= p (=220=22..=221=22).taint.to=5Fs.tainted=3F
=7E=7E=7E

=23= =23 expected result
prints =60true=60 3 times.

=23=23 act= ual result
prints =60true=60, =60true=60, and =60false=60.




--
https://bugs.ruby-lang.org/
--5673864a_5e884adc_16c--