leizongmin / leizongmin/node-rd
fs.stat在运行时是不安全的,当碰到软连接文件时候,并且软连接失效的时候,会报错
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 148
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
hey guys, 使用你的库的时候,报错了,发现是因为rd里使用了fs.stat 查看了一个软连接失效的文件导致了,你看 是不是全局把 fs.stat 改为 fs.lstat 来规避运行时的错误
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the rd code paths that call fs.stat while traversing directories, then inspect how broken symbolic links are handled. Compare the behavior with fs.lstat and verify that enumeration completes without errors for broken links while still listing the intended files.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100