From 5202984c3f14814e8fa206660ff167ea9ba52217 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 cdf2d7026ec..83f362ef1fa 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)) {