mirror of
https://github.com/apache/nuttx.git
synced 2026-05-18 00:34:10 +08:00
92bbe4f6ac
The TCB initializes the pid early, but the argvstack is not initialized at that time. This may cause invalid addresses to be obtained when nxsched_get_stackargs is called during task enumeration. Initialize the argv pointer to NULL to enable safe validity checks. Signed-off-by: hujun5 <hujun5@xiaomi.com>