From 2bcac76eee1bb8577e961c6a96158cc44b475bb3 Mon Sep 17 00:00:00 2001 From: zhangyaqi Date: Wed, 22 May 2024 10:44:47 +0800 Subject: [PATCH] Fix the using of the uninitialized value --- ...the-using-of-the-uninitialized-value.patch | 26 +++++++++++++++++++ numactl.spec | 6 ++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 0003-fix-the-using-of-the-uninitialized-value.patch diff --git a/0003-fix-the-using-of-the-uninitialized-value.patch b/0003-fix-the-using-of-the-uninitialized-value.patch new file mode 100644 index 0000000..8a0ded4 --- /dev/null +++ b/0003-fix-the-using-of-the-uninitialized-value.patch @@ -0,0 +1,26 @@ +From 119eb590f5f0b89611d46cdec805b22767f8a6c0 Mon Sep 17 00:00:00 2001 +From: Pingfan Liu +Date: Wed, 17 Apr 2024 10:36:34 +0800 +Subject: [PATCH] numademo: Fix the using of the uninitialized value + +Signed-off-by: Pingfan Liu +--- + numademo.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/numademo.c b/numademo.c +index 374afd3..f8a00ba 100644 +--- a/numademo.c ++++ b/numademo.c +@@ -248,6 +248,8 @@ static void memtest(char *name, unsigned char *mem) + + #endif + default: ++ gettimeofday(&start,NULL); ++ gettimeofday(&end,NULL); + break; + } + +-- +2.27.0 + diff --git a/numactl.spec b/numactl.spec index 2c96916..b194d0a 100644 --- a/numactl.spec +++ b/numactl.spec @@ -1,6 +1,6 @@ Name: numactl Version: 2.0.17 -Release: 2 +Release: 3 Summary: Library for tuning for Non Uniform Memory Access machines License: GPLv2 URL: https://github.com/numactl/numactl @@ -9,6 +9,7 @@ BuildRequires: libtool automake autoconf Patch0001: 0001-libnuma-Fix-unexpected-output.patch Patch0002: 0002-libnuma-Fix-incorrect-print-and-exit-of-numa_preferr.patch +Patch0003: 0003-fix-the-using-of-the-uninitialized-value.patch %description Simple NUMA policy support. It consists of a numactl program to run other @@ -77,6 +78,9 @@ LD_LIBRARY_PATH=$(pwd)/.libs make check %{_mandir}/man3/*.3* %changelog +* Wed May 22 2024 zhangyaqi - 2.0.17-3 +- numademo: Fix the using of the uninitialized value + * Tue Apr 16 2024 zhangnaichuan - 2.0.17-2 - libnuma: Fix incorrect print and exit of numa_preferred/_many APIs -- Gitee