代码拉取完成,页面将自动刷新
From f6df059cf18aa0019c5bdea8947a5b4a53c02bde Mon Sep 17 00:00:00 2001
From: yinbin <yinbin8@huawei.com>
Date: Wed, 27 Dec 2023 09:58:30 +0800
Subject: [PATCH] fix stack_setup_thread array range
diff --git a/src/lstack/core/lstack_protocol_stack.c b/src/lstack/core/lstack_protocol_stack.c
index 0aff1b4..b5d4ea3 100644
--- a/src/lstack/core/lstack_protocol_stack.c
+++ b/src/lstack/core/lstack_protocol_stack.c
@@ -648,7 +648,7 @@ int32_t stack_setup_thread(void)
int32_t ret;
char name[PATH_MAX];
int queue_num = get_global_cfg_params()->num_queue;
- struct thread_params *t_params[queue_num] = {0};
+ struct thread_params *t_params[PROTOCOL_STACK_MAX] = {NULL};
int process_index = get_global_cfg_params()->process_idx;
for (uint32_t i = 0; i < queue_num; i++) {
--
2.27.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。