RT-Thread / RT-Thread/rt-thread
[DFS] cat XX PIN问题
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 12.2k
- Forks
- 5.4k
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 40
Description
从代码这里可以看到control传入的结构体指针
https://github.com/RT-Thread/rt-thread/blob/d2308d41d75033e9027e466eff126696cd921523/components/drivers/misc/pin.c#L57
但是使用cat XXX 操作PIN 将会导致XXX 字符串写入此处,导致解析流程失败,请完善此处功能或者移除不可用接口
Contributor guide
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 at components/drivers/misc/pin.c around line 57, where the control structure pointer is passed. Reproduce the reported cat XXX PIN operation and trace how the string reaches the PIN parser. Done means the interface either handles the input without breaking parsing or the unusable interface is removed, with the relevant behavior verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100