Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nshlib: Fix stack-buffer-overflow of nsh_redirect()
Board/Config/Command sim:nsh cat < /etc/init.d/rc.sysinit Problem The NSH hangs after exec the test command. `nsh_redirect()` needs to save three fd but array length is only two, stack buffer overflowed! Related: apache#2469 Signed-off-by: wangjianyu3 <[email protected]>
- Loading branch information