mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-09-01 22:53:05 +00:00
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:
parent
48ddaadad1
commit
ec33a924a5
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue