From 7088cf41fdad7a997f30c155a99f4c5c7fdc62f4 Mon Sep 17 00:00:00 2001 From: linford-wu Date: Sun, 9 Feb 2025 18:33:30 +0800 Subject: [PATCH] Fixed the problem that g_isOtherCoreExc may cause out-of-bounds Signed-off-by: linford-wu --- src/arch/cpu/armv8/common/exc/prt_exc_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/cpu/armv8/common/exc/prt_exc_init.c b/src/arch/cpu/armv8/common/exc/prt_exc_init.c index 48accd3c..301fca60 100644 --- a/src/arch/cpu/armv8/common/exc/prt_exc_init.c +++ b/src/arch/cpu/armv8/common/exc/prt_exc_init.c @@ -19,7 +19,7 @@ #endif #include "prt_log.h" #include "prt_stacktrace.h" -OS_SEC_BSS bool g_isOtherCoreExc[OS_VAR_ARRAY_NUM]; +OS_SEC_BSS bool g_isOtherCoreExc[OS_MAX_CORE_NUM]; #if defined(OS_OPTION_SMP) OS_SEC_BSS uintptr_t g_uniFlagAddr[OS_MAX_CORE_NUM]; -- Gitee