Project

General

Profile

Bug #2222

Regex creation error in safe mode

Added by marcandre (Marc-Andre Lafortune) about 10 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
ruby 1.9.2dev (2009-10-17 trunk 25379) [x86_64-darwin10.0.0]
Backport:
[ruby-core:26137]

Description

=begin
$ ruby -e '$SAFE=4; /#{}/o'
-e:1:in `': Insecure: can't modify array (SecurityError)

Fairly recent since error not present in ruby 1.9.2dev (2009-08-30 trunk 24705)
=end

History

#1

Updated by marcandre (Marc-Andre Lafortune) about 10 years ago

  • Status changed from Open to Assigned
  • Assignee set to ko1 (Koichi Sasada)

=begin
Issue was introduced in r24786

=end

#2

Updated by nobu (Nobuyoshi Nakada) about 10 years ago

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

=begin
This issue was solved with changeset r25398.
Marc-Andre, thank you for your reporting of the issue.
You have greatfully contributed toward Ruby.
May Ruby be with you.

=end

Also available in: Atom PDF