Project

General

Profile

Bug #2222

Regex creation error in safe mode

Added by marcandre (Marc-Andre Lafortune) over 10 years ago. Updated about 9 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

Also available in: Atom PDF