rpms/numactl/devel numactl-2.0.3-nodes_allowed_list_obo.patch, NONE, 1.1 numactl.spec, 1.62, 1.63

Neil Horman nhorman at fedoraproject.org
Mon Aug 10 11:16:59 UTC 2009


Author: nhorman

Update of /cvs/extras/rpms/numactl/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv12371

Modified Files:
	numactl.spec 
Added Files:
	numactl-2.0.3-nodes_allowed_list_obo.patch 
Log Message:
Resolves: bz 516223

numactl-2.0.3-nodes_allowed_list_obo.patch:
 libnuma.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE numactl-2.0.3-nodes_allowed_list_obo.patch ---
diff -up numactl-2.0.3/libnuma.c.orig numactl-2.0.3/libnuma.c
--- numactl-2.0.3/libnuma.c.orig	2009-08-10 07:02:12.000000000 -0400
+++ numactl-2.0.3/libnuma.c	2009-08-10 07:02:39.000000000 -0400
@@ -464,7 +464,7 @@ set_thread_constraints(void)
 			nodes_allowed_list = malloc(strlen(buffer)-18);
 			strncpy(nodes_allowed_list, buffer + 19,
 				strlen(buffer) - 19);
-			nodes_allowed_list[strlen(nodes_allowed_list)-1] = '\0';
+			nodes_allowed_list[strlen(buffer)-19] = '\0';
 		}
 	}
 	fclose(f);


Index: numactl.spec
===================================================================
RCS file: /cvs/extras/rpms/numactl/devel/numactl.spec,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -p -r1.62 -r1.63
--- numactl.spec	25 Jul 2009 19:41:12 -0000	1.62
+++ numactl.spec	10 Aug 2009 11:16:58 -0000	1.63
@@ -1,7 +1,7 @@
 Name:		numactl
 Summary:	Library for tuning for Non Uniform Memory Access machines
 Version:	2.0.3
-Release:	5%{dist} 
+Release:	6%{dist} 
 License:	LGPLv2/GPLv2
 Group: 		System Environment/Base
 URL:		ftp://oss.sgi.com/www/projects/libnuma/download
@@ -10,6 +10,7 @@ Buildroot:	%{_tmppath}/%{name}-buildroot
 
 Patch0: numactl-2.0.3-rc3-distance_parsing.patch
 Patch1: numactl-2.0.3-rc3-no-nodes-warning.patch
+Patch2: numactl-2.0.3-nodes_allowed_list_obo.patch
 
 ExcludeArch: s390 s390x
 
@@ -30,6 +31,7 @@ Provides development headers for numa li
 %setup -q -n %{name}-%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 make CFLAGS="$RPM_OPT_FLAGS -I."
@@ -71,6 +73,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man3/*.3*
 
 %changelog
+* Mon Aug 10 2009 Neil Horman <nhorman at redhat.com> - 2.0.3-6
+- Fix obo in nodes_allowed_list strncpy (bz 516223)
+
 * Sat Jul 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.0.3-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 




More information about the fedora-extras-commits mailing list