summaryrefslogtreecommitdiff
path: root/lang/ruby18-base/patches
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2012-10-06 16:30:28 +0000
committertaca <taca@pkgsrc.org>2012-10-06 16:30:28 +0000
commit8154c6109aa5416b66df9ab31ef1d521405bea60 (patch)
tree35858f6552a2287c49509fd9faf1edc8deb6bf18 /lang/ruby18-base/patches
parent707b71c81a02737fd2a36f20b8fbe41097e8c3a7 (diff)
downloadpkgsrc-8154c6109aa5416b66df9ab31ef1d521405bea60.tar.gz
Add additional fix to CVE-2011-1005 from discuttion on oss-security
mailing list. Bump PKGREVISION.
Diffstat (limited to 'lang/ruby18-base/patches')
-rw-r--r--lang/ruby18-base/patches/patch-error.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/lang/ruby18-base/patches/patch-error.c b/lang/ruby18-base/patches/patch-error.c
new file mode 100644
index 00000000000..de32ebbf8f7
--- /dev/null
+++ b/lang/ruby18-base/patches/patch-error.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-error.c,v 1.1 2012/10/06 16:30:28 taca Exp $
+
+More fix to CVE-2011-1005 from discuttion on oss-security mailing list.
+
+--- error.c.orig 2011-02-18 12:32:35.000000000 +0000
++++ error.c
+@@ -665,9 +665,6 @@ name_err_to_s(exc)
+
+ if (NIL_P(mesg)) return rb_class_name(CLASS_OF(exc));
+ StringValue(str);
+- if (str != mesg) {
+- OBJ_INFECT(str, mesg);
+- }
+ return str;
+ }
+