RT-Thread / RT-Thread/rt-thread

sscanf问题,出现内存溢出问题

Open
#6,951 2 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

2f4b1bb5e367f5bb7a9ee090ebc6f16

  1. 使用sscanf时,%d需要uint32或者int,整形变量获取数值,如果使用uint16时,会出现内存溢出,导致系统奔溃
  2. 如上图

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.