From de38e1fb3dcb07e6a6c94c71360d03add958c8c3 Mon Sep 17 00:00:00 2001 From: "Guilherme G. Menaldo" Date: Sun, 8 Oct 2023 17:44:24 -0300 Subject: [PATCH] fix a possible buffer overflow when using custom MAX_SKILL_LEVEL --- src/map/skill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/skill.c b/src/map/skill.c index 4f430337d12..89122990231 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -21645,7 +21645,7 @@ static void skill_config_set_level(struct config_setting_t *conf, int *arr) if (config_setting_is_group(conf)) { for (i=0; isetting_lookup_int(conf, level, &arr[i]); } } else if (config_setting_is_array(conf)) {