RT-Thread / RT-Thread/rt-thread
sscanf问题,出现内存溢出问题
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 12.2k
- Forks
- 5.4k
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 40
Description

- 使用sscanf时,%d需要uint32或者int,整形变量获取数值,如果使用uint16时,会出现内存溢出,导致系统奔溃
- 如上图
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
The report names sscanf, a %d conversion, and a uint16 variable, with an attached screenshot but no source file or test. Start by reproducing the described call and tracing the C library implementation used by RT-Thread; completion requires clarifying the intended behavior and verifying it with a focused regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100