10 Star 4 Fork 33

src-openEuler/gazelle

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
0102-fix-func-separate_str_to_array-overflow-problem.patch 788 Bytes
Copy Edit Raw Blame History
From fafd5c387910da2f81f38c320b3da01ffd97c6c2 Mon Sep 17 00:00:00 2001
From: yinbin6 <yinbin8@huawei.com>
Date: Mon, 25 Dec 2023 13:01:39 +0000
Subject: [PATCH] fix func separate_str_to_array overflow problem
Signed-off-by: yinbin6 <yinbin8@huawei.com>
---
src/common/gazelle_parse_config.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/gazelle_parse_config.c b/src/common/gazelle_parse_config.c
index 16efdc8..1adce78 100644
--- a/src/common/gazelle_parse_config.c
+++ b/src/common/gazelle_parse_config.c
@@ -33,7 +33,7 @@
int32_t separate_str_to_array(char *args, uint32_t *array, int32_t array_size, int32_t max_value)
{
- uint32_t count = 0;
+ int32_t count = 0;
char *end = NULL;
int32_t min, max;
int32_t idx;
--
2.27.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/gazelle.git
git@gitee.com:src-openeuler/gazelle.git
src-openeuler
gazelle
gazelle
master

Search

D67c1975 1850385 1daf7b77 1850385