From ec33a924a58803ce5e60e79545b8414fa4cb992c Mon Sep 17 00:00:00 2001 From: wangjianyu3 Date: Wed, 26 Aug 2026 22:54:07 +0800 Subject: [PATCH] system/nxinit: increase SERVICE_ARGS_MAX default to 16 The previous default of 8 is insufficient for services with many arguments (e.g. ptpd needs 10 argv slots). When exceeded, argv lacks a NULL terminator, causing posix_spawnp to read out of bounds. Increase default to 16 to prevent argument truncation for typical daemon services. Signed-off-by: wangjianyu3 --- system/nxinit/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/nxinit/Kconfig b/system/nxinit/Kconfig index f30335677..3cd256bf7 100644 --- a/system/nxinit/Kconfig +++ b/system/nxinit/Kconfig @@ -94,7 +94,7 @@ comment "NXInit Service" config SYSTEM_NXINIT_SERVICE_ARGS_MAX int "Max number of service arguments" - default 8 + default 16 range 3 64 ---help--- Maximum number of service arguments,