Skip to content

RDKB-65626: Prevent invalid hotspot command execution - #70

Merged
apattu200 merged 1 commit into
developfrom
feature/RDKB-65626
Sep 30, 2026
Merged

apattu200 merged 1 commit into
developfrom
feature/RDKB-65626

Conversation

@sriraaman-c

Copy link
Copy Markdown
Contributor

Reason for change: Initialize the hotspot command buffer and execute it only when commands were appended.
This prevents stale Buffer 2 contents from being passed to the shell when hotspot bridges are managed through CORE_NET_LIB.
Test Procedure: Hotspot should be running with no new error.
Risks: Medium
Priority: P1

Reason for change: Initialize the hotspot command buffer
and execute it only when commands were appended.
This prevents stale Buffer 2 contents from being passed
to the shell when hotspot bridges are managed through CORE_NET_LIB.
Test Procedure: Hotspot should be running with no new error.
Risks: Medium
Priority: P1

Signed-off-by: Sriraaman C <sriraaman33@gmail.com>
Copilot AI balanced review requested due to automatic review settings September 29, 2026 08:51
@sriraaman-c
sriraaman-c requested review from a team as code owners September 29, 2026 08:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Existing CORE_NET_LIB unit tests must be updated to validate the new command-execution behavior.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Prevents stale command-buffer contents from being executed during CORE_NET_LIB bridge configuration.

Changes:

  • Zero-initializes the command buffer.
  • Executes shell commands only when commands were appended.
File Description
source/​HotspotApi/​HotspotApi.c Guards hotspot command execution against empty buffers.

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

Comment thread source/HotspotApi/HotspotApi.c
@apattu200
apattu200 merged commit 9c9ecf0 into develop Sep 30, 2026
13 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants