Skip to content

[DO NOT MERGE] Dummy PR to check for coverity integration#17

Open
hirrangandhid wants to merge 1 commit intodevelopfrom
feature/dummy_PR_coverity
Open

[DO NOT MERGE] Dummy PR to check for coverity integration#17
hirrangandhid wants to merge 1 commit intodevelopfrom
feature/dummy_PR_coverity

Conversation

@hirrangandhid
Copy link
Contributor

[DO NOT MERGE] Dummy PR to check for coverity integration

Copilot AI review requested due to automatic review settings February 17, 2026 12:16
@hirrangandhid hirrangandhid requested review from a team as code owners February 17, 2026 12:16
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This is a test PR designed to verify Coverity static analysis integration by intentionally introducing several types of bugs. The PR explicitly states "[DO NOT MERGE]" and is meant to test whether Coverity can detect common programming errors.

Changes:

  • Added unchecked return value for memset_s call
  • Introduced a resource leak by opening a file without closing it
  • Added unreachable dead code after a return statement

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rdkcmf-jenkins
Copy link
Contributor

Coverity Issue - Resource leak

Variable "fp2" going out of scope leaks the storage it points to.

High Impact, CWE-404
RESOURCE_LEAK

Issue location

This issue was discovered outside the diff for this Pull Request. You can find it at:
source/cm_http_dl.c:241

return http_reboot_stat;

// COVERITY ISSUE LOW: Dead code - unreachable statement after return
printf("This code will never execute\n");
Copy link
Contributor

Choose a reason for hiding this comment

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

Coverity Issue - Structurally dead code

This code cannot be reached: "printf("This code will neve...".

Medium Impact, CWE-561
UNREACHABLE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants