mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-09-03 23:53:00 +00:00
Empty lines in init.rc caused parsing to fail with -EINVAL because init_parse_arguments() returns 0 for empty strings, triggering the 'argc < 1' error path in init_action_parse() and accessing uninitialized argv[0] in init_service_parse(). Fix by skipping empty lines and lines containing only whitespace before attempting to match section keywords or calling parser callbacks. Fixes apache/nuttx-apps#3513 Signed-off-by: hanzj <hanzhijian@zepp.com> |
||
|---|---|---|
| .. | ||
| action.c | ||
| action.h | ||
| builtin.c | ||
| builtin.h | ||
| CMakeLists.txt | ||
| import.c | ||
| import.h | ||
| init.c | ||
| init.h | ||
| Kconfig | ||
| Make.defs | ||
| Makefile | ||
| parser.c | ||
| parser.h | ||
| service.c | ||
| service.h | ||