summaryrefslogtreecommitdiff
path: root/lang/ruby18-base/patches/patch-cp
diff options
context:
space:
mode:
Diffstat (limited to 'lang/ruby18-base/patches/patch-cp')
-rw-r--r--lang/ruby18-base/patches/patch-cp14
1 files changed, 0 insertions, 14 deletions
diff --git a/lang/ruby18-base/patches/patch-cp b/lang/ruby18-base/patches/patch-cp
deleted file mode 100644
index fc420e4ae87..00000000000
--- a/lang/ruby18-base/patches/patch-cp
+++ /dev/null
@@ -1,14 +0,0 @@
-$NetBSD: patch-cp,v 1.1 2006/08/02 07:02:44 taca Exp $
-
---- re.c.orig 2005-12-13 12:27:51.000000000 +0900
-+++ re.c
-@@ -1332,6 +1332,9 @@ rb_reg_initialize(obj, s, len, options)
- {
- struct RRegexp *re = RREGEXP(obj);
-
-+ if (!OBJ_TAINTED(obj) && rb_safe_level() >= 4)
-+ rb_raise(rb_eSecurityError, "Insecure: can't modify regexp");
-+ rb_check_frozen(obj);
- if (re->ptr) re_free_pattern(re->ptr);
- if (re->str) free(re->str);
- re->ptr = 0;