From 05de20425279a663e019a13d9c074cb8d1a2ea87 Mon Sep 17 00:00:00 2001 From: Neil Horman Date: Aug 10 2009 11:16:58 +0000 Subject: Resolves: bz 516223 --- diff --git a/numactl-2.0.3-nodes_allowed_list_obo.patch b/numactl-2.0.3-nodes_allowed_list_obo.patch new file mode 100644 index 0000000..469a136 --- /dev/null +++ b/numactl-2.0.3-nodes_allowed_list_obo.patch @@ -0,0 +1,12 @@ +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); diff --git a/numactl.spec b/numactl.spec index e327b46..5f4b1e0 100644 --- a/numactl.spec +++ b/numactl.spec @@ -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 library calls %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 - 2.0.3-6 +- Fix obo in nodes_allowed_list strncpy (bz 516223) + * Sat Jul 25 2009 Fedora Release Engineering - 2.0.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild