27 lines
788 B
Diff
27 lines
788 B
Diff
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
|
|
|