From 2a85440bcd82caf66b29428145affb30388a4994 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 12 Sep 2025 11:26:49 +0200 Subject: [PATCH] netifd: fix misplaced ")" Fixes memory corruption issue Fixes: https://github.com/openwrt/netifd/issues/54 Signed-off-by: Felix Fietkau --- ucode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ucode.c b/ucode.c index 291bb3e..553a72e 100644 --- a/ucode.c +++ b/ucode.c @@ -442,7 +442,7 @@ uc_netifd_process(uc_vm_t *vm, size_t nargs) prefix_str = ucv_string_get(prefix); - res = ucv_resource_create_ex(vm, "netifd.process", (void **)&up, 1, sizeof(*up) + strlen(prefix_str + 1)); + res = ucv_resource_create_ex(vm, "netifd.process", (void **)&up, 1, sizeof(*up) + strlen(prefix_str) + 1); if (!res) return NULL; -- 2.30.2