rpms/ruby/F-8 ruby-1.8.6.230-p257.patch, NONE, 1.1 ruby.spec, 1.108, 1.109

Akira TAGOH (tagoh) fedora-extras-commits at redhat.com
Tue Jul 1 08:48:11 UTC 2008


Author: tagoh

Update of /cvs/pkgs/rpms/ruby/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3121

Modified Files:
	ruby.spec 
Added Files:
	ruby-1.8.6.230-p257.patch 
Log Message:
* Tue Jul  1 2008 Akira TAGOH <tagoh at redhat.com> - 1.8.6.230-4
- Backported from upstream SVN to fix a segfault issue with Array#fill.

ruby-1.8.6.230-p257.patch:

--- NEW FILE ruby-1.8.6.230-p257.patch ---
diff -pruN ruby-1.8.6-p230.orig/array.c ruby-1.8.6-p230/array.c
--- ruby-1.8.6-p230.orig/array.c	2008-07-01 16:32:12.000000000 +0900
+++ ruby-1.8.6-p230/array.c	2008-07-01 16:34:01.000000000 +0900
@@ -2272,7 +2272,7 @@ rb_ary_fill(argc, argv, ary)
 	break;
     }
     rb_ary_modify(ary);
-    if (len > ARY_MAX_SIZE - beg) {
+    if (beg >= ARY_MAX_SIZE || len > ARY_MAX_SIZE - beg) {
 	rb_raise(rb_eArgError, "argument too big");
     }
     end = beg + len;


Index: ruby.spec
===================================================================
RCS file: /cvs/pkgs/rpms/ruby/F-8/ruby.spec,v
retrieving revision 1.108
retrieving revision 1.109
diff -u -r1.108 -r1.109
--- ruby.spec	30 Jun 2008 03:46:12 -0000	1.108
+++ ruby.spec	1 Jul 2008 08:47:11 -0000	1.109
@@ -12,7 +12,7 @@
 
 Name:		ruby
 Version:	%{rubyver}%{?dotpatchlevel}
-Release:	3%{?dist}
+Release:	4%{?dist}
 License:	Ruby or GPLv2
 URL:		http://www.ruby-lang.org/
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -39,6 +39,7 @@
 Patch26:	ruby-1.8.6.230-string-str_buf_cat.patch
 Patch27:	ruby-1.8.6.230-p238.patch
 Patch28:	ruby-1.8.6.230-p248.patch
+Patch29:	ruby-1.8.6.230-p257.patch
 
 Summary:	An interpreter of object-oriented scripting language
 Group:		Development/Languages
@@ -162,6 +163,7 @@
 %patch26 -p1
 %patch27 -p1
 %patch28 -p1
+%patch29 -p1
 popd
 
 %build
@@ -518,6 +520,9 @@
 %endif
 
 %changelog
+* Tue Jul  1 2008 Akira TAGOH <tagoh at redhat.com> - 1.8.6.230-4
+- Backported from upstream SVN to fix a segfault issue with Array#fill.
+
 * Mon Jun 30 2008 Akira TAGOH <tagoh at redhat.com> - 1.8.6.230-3
 - Backported from upstream SVN to fix a segfault issue. (#452825)
 - Backported from upstream SVN to fix an integer overflow in rb_ary_fill.




More information about the fedora-extras-commits mailing list