From ab33270c4a7aaf46304b9f42b82c4152e5d09e80 Mon Sep 17 00:00:00 2001 From: Bernd Machenschalk Date: Mon, 16 Oct 2023 10:47:35 +0200 Subject: [PATCH 1/2] complete #5123 --- db/boinc_db_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/boinc_db_types.h b/db/boinc_db_types.h index 111f2e82b69..8d9cfd88ea1 100644 --- a/db/boinc_db_types.h +++ b/db/boinc_db_types.h @@ -366,7 +366,7 @@ struct HOST { // but not stored in the DB // TODO: move this stuff to a derived class HOST_SCHED // - char p_features[1024]; + char p_features[P_FEATURES_SIZE]; char virtualbox_version[256]; bool p_vm_extensions_disabled; int num_opencl_cpu_platforms; From 7d23fa6f3ca7228bd4fa2e66cb33f1fd34f5f8ed Mon Sep 17 00:00:00 2001 From: Bernd Machenschalk Date: Mon, 16 Oct 2023 11:16:24 +0200 Subject: [PATCH 2/2] scheduler: complete #5123 #2: plan_class_spec --- sched/plan_class_spec.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sched/plan_class_spec.cpp b/sched/plan_class_spec.cpp index 76dc56370d2..931c36eb41b 100644 --- a/sched/plan_class_spec.cpp +++ b/sched/plan_class_spec.cpp @@ -22,6 +22,7 @@ #include "util.h" #include "coproc.h" +#include "hostinfo.h" #include "sched_config.h" #include "sched_customize.h" @@ -269,7 +270,7 @@ bool PLAN_CLASS_SPEC::check( // so we can look for them with strstr() // if (!cpu_features.empty()) { - char buf[8192], buf2[512]; + char buf[P_FEATURES_SIZE], buf2[512]; sprintf(buf, " %s ", sreq.host.p_features); char* p = strrchr(sreq.host.p_model, '['); if (p) {