nuttx
nuttx copied to clipboard
fs/vfs/fs_rename: fix directory move operation.
Summary
- Recurrency is removed from filesystem directory rename.
- Fixes use after free in buffer that was used as output and argument.
- Patch provided by @richyliu.
Impact
fs/vfs bug fix of possible use after free.
Testing
@cederom: esp32c6-xiao:usbnsh. @richyliu: STM32 Nucleo H743ZI + FTP.
Reviewers please double check locally if the issue is reproducible and there are no side effects after patch :-)