From c25ed520aa3bc4c50fe6bc72b80e41762c7525bf Mon Sep 17 00:00:00 2001 From: Eurecom Date: Tue, 11 Oct 2022 09:24:55 +0200 Subject: [PATCH 1/2] added RH9.0 to build_helper --- cmake_targets/tools/build_helper | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake_targets/tools/build_helper b/cmake_targets/tools/build_helper index f4e206d0eb..7ab868fb09 100755 --- a/cmake_targets/tools/build_helper +++ b/cmake_targets/tools/build_helper @@ -121,6 +121,7 @@ check_supported_distribution() { "rhel8.5") return 0 ;; "rhel8.6") return 0 ;; "rhel8.7") return 0 ;; + "rhel9.0") return 0 ;; "centos7") return 0 ;; esac return 1 From 3ea36ba0d3cabd7430cada3eaf3d77eb6ffe099a Mon Sep 17 00:00:00 2001 From: Raymond Knopp Date: Tue, 11 Oct 2022 10:55:19 +0200 Subject: [PATCH 2/2] bugfix in use of sizeof in thread-pool.c --- common/utils/threadPool/thread-pool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/utils/threadPool/thread-pool.c b/common/utils/threadPool/thread-pool.c index 75252a9143..3cd18fab02 100644 --- a/common/utils/threadPool/thread-pool.c +++ b/common/utils/threadPool/thread-pool.c @@ -167,9 +167,9 @@ void initFloatingCoresTpool(int nbThreads,tpool_t *pool, bool performanceMeas, c if (nbThreads) { strcpy(threads,"-1"); for (int i=1; i < nbThreads; i++) - strncat(threads,",-1", sizeof(threads-1)); + strncat(threads,",-1", sizeof(threads)-1); } - threads[sizeof(threads-1)]=0; + threads[sizeof(threads)-1]=0; initNamedTpool(threads, pool, performanceMeas, name); }