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 <wangjianyu3@xiaomi.com>
This commit is contained in:
wangjianyu3 2026-08-26 22:54:07 +08:00 committed by Alan C. Assis
parent 48ddaadad1
commit ec33a924a5

View file

@ -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,