Bug #6540

marshal_load discards frozen objects

Added by Nobuyoshi Nakada over 2 years ago. Updated over 2 years ago.

[ruby-core:<unknown>]
Status:Closed
Priority:Urgent
Assignee:Nobuyoshi Nakada
ruby -v:trunk Backport:


Related issues

Duplicated by Ruby trunk - Bug #6541: marshal_load discards frozen objects Closed 06/04/2012 06/04/2012

Associated revisions

Revision 36175
Added by Nobuyoshi Nakada over 2 years ago

random.c: check initialize and load

  • random.c (random_init, random_load): cannot initialize frozen object again, nor with tainted/untrusted object. [Bug #6540]

Revision 36175
Added by Nobuyoshi Nakada over 2 years ago

random.c: check initialize and load

  • random.c (random_init, random_load): cannot initialize frozen object again, nor with tainted/untrusted object. [Bug #6540]

Revision 36185
Added by Nobuyoshi Nakada over 2 years ago

[Bug #6540]

  • test/ruby/test_rand.rb (TestRand#test_initialize_frozen): add missing test for [Bug #6540]

Revision 36185
Added by Nobuyoshi Nakada over 2 years ago

[Bug #6540]

  • test/ruby/test_rand.rb (TestRand#test_initialize_frozen): add missing test for [Bug #6540]

History

#1 Updated by Nobuyoshi Nakada over 2 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r36175.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


random.c: check initialize and load

  • random.c (random_init, random_load): cannot initialize frozen object again, nor with tainted/untrusted object. [Bug #6540]

Also available in: Atom PDF