RT-Thread / RT-Thread/rt-thread

[DFS] cat XX PIN问题

Open
#7,812 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.