Skip to content

rcx: fix deadcode coverity issue#10945

Open
AcKoucher wants to merge 2 commits into
The-OpenROAD-Project:masterfrom
AcKoucher:rcx-coverity
Open

rcx: fix deadcode coverity issue#10945
AcKoucher wants to merge 2 commits into
The-OpenROAD-Project:masterfrom
AcKoucher:rcx-coverity

Conversation

@AcKoucher

Copy link
Copy Markdown
Contributor

Summary

From the original code.

Type of Change

  • Bug fix

Impact

Debug net option should work now.

Verification

  • I have verified that the local build succeeds (./etc/Build.sh).
  • I have run the relevant tests and they pass.
  • My code follows the repository's formatting guidelines.
  • I have signed my commits (DCO).

Signed-off-by: Arthur Koucher <arthurkoucher@precisioninno.com>
@AcKoucher
AcKoucher requested a review from a team as a code owner July 17, 2026 21:33
@AcKoucher
AcKoucher requested a review from maliberty July 17, 2026 21:33

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors extMain::run in src/rcx/src/netRC.cpp by replacing the local variable debugNetId with the member variable _debug_net_id and correcting the format specifier in sprintf to %u for the unsigned net ID. Feedback suggests replacing the unsafe sprintf call with std::to_string to prevent potential buffer overflow vulnerabilities and simplify the code.

Comment thread src/rcx/src/netRC.cpp Outdated
Signed-off-by: Arthur Koucher <arthurkoucher@precisioninno.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant