From 42aa02bc373d2c22a7d1182fdbdfc919513110cf Mon Sep 17 00:00:00 2001 From: Zhang Yaqi Date: Tue, 2 Jul 2024 10:25:41 +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 0010-fix-the-using-of-the-uninitialized-value.patch diff --git a/0010-fix-the-using-of-the-uninitialized-value.patch b/0010-fix-the-using-of-the-uninitialized-value.patch new file mode 100644 index 0000000..a2355de --- /dev/null +++ b/0010-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..8886d7f 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 d4b2767..cd61217 100644 --- a/numactl.spec +++ b/numactl.spec @@ -1,6 +1,6 @@ Name: numactl Version: 2.0.16 -Release: 8 +Release: 9 Summary: Library for tuning for Non Uniform Memory Access machines License: GPLv2 URL: https://github.com/numactl/numactl @@ -16,6 +16,7 @@ Patch0006: 0006-numactl.c-Fix-merging-of-neighboring-pages-policies-.patch Patch0007: 0007-shm.c-Replace-stat64-fstat64-ftruncate64mmap64-with-.patch Patch0008: 0008-numastat-Update-system-hugepages-memory-info-from-sy.patch Patch0009: 0009-fix-fix-memory-leaks-when-run-with-H.patch +Patch0010: 0010-fix-the-using-of-the-uninitialized-value.patch %description Simple NUMA policy support. It consists of a numactl program to run other @@ -84,6 +85,9 @@ LD_LIBRARY_PATH=$(pwd)/.libs make check %{_mandir}/man3/*.3* %changelog +* Tue Jul 2 2024 zhangyaqi - 2.0.16-9 +- numademo: Fix the using of the uninitialized value + * Tue Dec 19 2023 chenhaixiang - 2.0.16-8 - fix: fix memory leaks when run with -H -- Gitee