Project

General

Profile

Actions

Bug #11760

closed

Encoding is tainted unexpectedly by Marshal.load

Added by nobu (Nobuyoshi Nakada) over 8 years ago. Updated over 8 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:71793]

Description

By Marshal.loading tainted source, Encoding object will be tainted.

code to reproduce

e = Encoding::UTF_8
p e.tainted?
p e == Marshal.load(Marshal.dump(e).taint)
p e.tainted?

expected results

false, true, and false

actual results

false, true, and true

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0