This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit ec33a924a58803ce5e60e79545b8414fa4cb992c
Author: wangjianyu3 <[email protected]>
AuthorDate: Wed Aug 26 22:54:07 2026 +0800

    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 <[email protected]>
---
 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,

Reply via email to