RT-Thread / RT-Thread/rt-thread

[Bug] Bug report from static analysis

Open
#11,688 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C
Stars
12.2k
Forks
5.4k
Avg merge
4d 12h
Merged PRs (30d)
40

Description

RT-Thread Version

https://github.com/RT-Thread/rt-thread/tree/cfda3b3d1a9935dd14dcb55e43065ca143d68fcf

Affected area

Other / Not sure

Hardware/BSP vendor

Not applicable / Other

Architecture

Not applicable / Other

Board and hardware details
Develop Toolchain

Other

Describe the bug

We analyzed the project for the cfda3b3 commit using PVS-Studio 7.43.
You can find all code fragments in the article: "How PVS-Studio helps enhance quality of embedded projects".

Other additional context

Hello.

I love that you shared your projects with the world. Thank you for that!

I checked RT-Thread using the PVS-Studio static analyzer and published an article: "How PVS-Studio helps enhance quality of embedded projects".

Perhaps you would like to take a look.

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 by reading the PVS-Studio article and reviewing the RT-Thread tree at commit cfda3b3. Map each reported code fragment to its source location, then determine which findings are reproducible and actionable. Done means the relevant findings have a decided disposition and any confirmed defects have corresponding fixes and validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot, operating-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.