Skip to content

RDKB-64347#1111

Open
navyasher wants to merge 1 commit intordkcentral:developfrom
navyasher:917check1
Open

RDKB-64347#1111
navyasher wants to merge 1 commit intordkcentral:developfrom
navyasher:917check1

Conversation

@navyasher
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 6, 2026 12:17
@navyasher navyasher requested a review from a team as a code owner May 6, 2026 12:17
Copy link
Copy Markdown
Contributor

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 PR appears to address multiple static-analysis/Coverity-style findings across the WiFi stack by tightening memory handling, concurrency, bounds checks, and failure handling in several utilities and sample/test paths.

Changes:

  • Replace rand() usage in a webconfig consumer sample with /dev/urandom-backed random values.
  • Add missing NULL checks and improve cleanup paths (e.g., allocation failures) in OVSDB utilities and PSM MacFilter handling.
  • Fix concurrency and validation issues (mutex lock ordering, unsigned bounds checks) and correct pointer arithmetic for UUID offsets in OVSDB table upserts.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
source/sampleapps/webconfig_consumer_apis.c Adds /dev/urandom-based helper and uses it in sample subdoc mutations.
source/dml/wifi_ssp/ssp_loop.c Adds strdup() failure handling and adjusts cleanup on early return paths in MacFilter PSM write logic.
source/dml/tr_181/ml/cosa_wifi_dml.c Adjusts instance number derivation and invalid-instance checks in SSID DML handlers.
source/core/wifi_ctrl_rbus_handlers.c Moves queue count under mutex to avoid races when removing rows.
source/apps/levl/wifi_levl.c Adds mutex protection for probe request map access; fixes unsigned radio validation.
lib/ovsdb/ovsdb_utils.c Adds NULL checks for pair allocation before inserting into ds_tree.
lib/ovsdb/ovsdb_table.c Fixes unsafe pointer arithmetic when deriving uuid from record + uuid_offset.

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

Comment thread source/sampleapps/webconfig_consumer_apis.c
Comment thread source/dml/wifi_ssp/ssp_loop.c
Comment thread source/dml/tr_181/ml/cosa_wifi_dml.c
Reason for change: Fixing high medium priority coverity issues.
Test Procedure: Build should be successful and the regression test should also succeed.

Risks: Low
Priority: P1
Signed-off-by: Kondamma_Kudumula@comcast.com
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