Skip to content

RDKB-65853: Fixing coverity issue#1253

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

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

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 8, 2026 10:25
@navyasher
navyasher requested a review from a team as a code owner July 8, 2026 10:25

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

This PR addresses Coverity-reported issues primarily around resource management (cJSON/Jansson objects and heap allocations) in the webconfig encoding and multicomp subdoc processing paths.

Changes:

  • Removes redundant/unsafe cJSON object handling in radio channel encoding.
  • Adjusts OVSDB where clause lifetime management in Ignite config update flow.
  • Adds missing frees/deletes in multicomp webconfig handlers (cJSON_Print buffer, parsed root, detached sub-blobs, msgpack resources).

Reviewed changes

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

File Description
source/webconfig/wifi_encoder.c Removes an unused cJSON object creation and avoids deleting a NULL object on allocation failure.
source/db/wifi_db_apis.c Removes json_decref(where) calls (consistent with ownership transfer in the OVSDB transaction builder).
source/core/wifi_multidoc_webconfig.c Adds missing cleanup for cJSON_Print output, parsed roots, detached sub-blobs, and msgpack buffers/zones on success paths.

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

Comment thread source/core/wifi_multidoc_webconfig.c Outdated
Copilot AI review requested due to automatic review settings July 10, 2026 07: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 5 out of 5 changed files in this pull request and generated 1 comment.

Comment thread source/core/wifi_multidoc_webconfig.c Outdated
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 12:12

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 5 out of 5 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