Skip to content

RDKB-65853: Fixing coverity issue#1266

Open
navyasher wants to merge 1 commit into
rdkcentral:developfrom
navyasher:vulnerability
Open

RDKB-65853: Fixing coverity issue#1266
navyasher wants to merge 1 commit into
rdkcentral:developfrom
navyasher:vulnerability

Conversation

@navyasher

Copy link
Copy Markdown
Contributor

Reason for change: Fixing coverity issues.
Test Procedure: Build should be successful and the regression test should also succeed
Risks: Low
Priority: P1
Signed-off-by: Navya_Sheregar@comcast.com

Copilot AI review requested due to automatic review settings July 14, 2026 11:21
@navyasher
navyasher requested a review from a team as a code owner July 14, 2026 11:21

Copilot AI 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.

Pull request overview

Fixes multiple Coverity findings primarily related to memory/resource handling in webconfig decode/encode paths and quality manager sample buffering.

Changes:

  • Prevent leaks by explicitly freeing cJSON objects in several subdoc decode functions.
  • Fix a cJSON_Print() debug-string leak in multivap decode logic.
  • Avoid accumulating link quality window samples when no batch consumer is registered.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
source/webconfig/wifi_webconfig_multivap.c Frees cJSON_Print() output used for per-VAP debug logging.
source/webconfig/wifi_webconfig_link_report.c Deletes parsed cJSON on both success and failure during decode.
source/webconfig/wifi_webconfig_harvester.c Deletes parsed cJSON on early-return error paths and on success.
source/webconfig/wifi_webconfig_em_ap_metrics_report.c Deletes parsed cJSON on validation/decode failures and on success.
source/webconfig/wifi_ovsdb_translator.c Attempts to free encoded raw data on “no config change” early return (but currently has an argument-type bug).
source/utils/quality_mgr/src/linkq.cpp Only buffers window samples when batch reporting is registered.

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

Comment thread source/webconfig/wifi_ovsdb_translator.c Outdated
Copilot AI review requested due to automatic review settings July 15, 2026 05:19

Copilot AI 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.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Comment thread source/webconfig/wifi_webconfig_multivap.c
Reason for change: Fixing coverity issues.
Test Procedure: Build should be successful and the regression test should also succeed
Risks: Low
Priority: P1
Signed-off-by: Navya_Sheregar@comcast.com
Copilot AI review requested due to automatic review settings July 16, 2026 05:34

Copilot AI 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.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.

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