mirror of
https://github.com/apache/nuttx.git
synced 2026-09-29 14:29:27 +08:00
Reading /proc/<pid>/group/env for another task dereferenced tg_envp under the caller's own address environment instead of the target task's, since tg_envp lives in the target's user heap. Switch to the target's address environment around the traversal, and to the caller's own environment only around the copy into the caller's buffer. Signed-off-by: liang.huang <liang.huang@houmo.ai>