Skip to content

DO NOT MERGE - RDKB-67212 Fix Coverity issues - #1519

Open
sshah500 wants to merge 1 commit into
rdkcentral:developfrom
myanaki:critical_6_7
Open

sshah500 wants to merge 1 commit into
rdkcentral:developfrom
myanaki:critical_6_7

Conversation

@sshah500

Copy link
Copy Markdown

Reason for change: Fixing critical Vulnerability issues
Test Procedure: Build should be successful and the regression test should also succeed

Risks: Low
Priority: P1
Signed-off-by:Sachinkumar_Shah@comcast.com

@sshah500
sshah500 requested a review from a team as a code owner October 16, 2026 13:01
Copilot AI balanced review requested due to automatic review settings October 16, 2026 13:01

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.

🟡 Changes recommended

Incomplete bounds checks, multi-object corruption, and ignored decoding failures leave security and correctness issues unresolved.

4 open findings
What changed in this PR

This PR aims to address Coverity vulnerabilities in Linux HE bus message decoding.

Changes:

  • Adds length checks and name termination.
  • Handles payload allocation and object-decoding failures.
  • Passes remaining buffer lengths through decoding helpers.
File Description
source/​platform/​linux/​he_bus/​src/​he_bus_data_conversion.c Adds defensive checks to message and object decoding.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread source/platform/linux/he_bus/src/he_bus_data_conversion.c
Comment thread source/platform/linux/he_bus/src/he_bus_data_conversion.c
Comment thread source/platform/linux/he_bus/src/he_bus_data_conversion.c Outdated
Comment thread source/platform/linux/he_bus/src/he_bus_data_conversion.c
@mateuszCieslak-GL mateuszCieslak-GL added the static-analysis Static-analysis findings (Coverity etc.). label Oct 17, 2026
Copilot AI balanced review requested due to automatic review settings October 19, 2026 22:08

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.

🔵 Needs a closer look

Buffer-bound validation and multi-object decoding still have correctness and safety issues.

4 open issues

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 21, 2026 11:02

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.

🟡 Changes recommended

The encryption compatibility check logs invalid settings but still accepts them for MLO grouping.

1 open issue

Review effort: Balanced

Comment thread source/core/wifi_ctrl.c
Copilot AI balanced review requested due to automatic review settings October 21, 2026 23:05
@mateuszCieslak-GL

Copy link
Copy Markdown
Contributor

[@sshah500 ] please resync your local develop fork.

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.

🔵 Needs a closer look

Incomplete payload validation and remaining-length accounting leave malformed messages unsafe to decode.

1 open issue

Review effort: Balanced

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

Labels

static-analysis Static-analysis findings (Coverity etc.).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants