Skip to content

Fix router MSTP NPDU bounds check - #1534

Merged
skarg merged 1 commit into
masterfrom
bugfix/router-mstp-apdu-bounds
Sep 29, 2026
Merged

skarg merged 1 commit into
masterfrom
bugfix/router-mstp-apdu-bounds

Conversation

@skarg

@skarg skarg commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

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.

Copilot review overview

🟢 Approval recommended

The one-line bounds change excludes empty APDUs, with no unresolved issues identified.

Review effort: Balanced
Findings: None

What changed in this PR

This PR tightens the router’s MS/TP NPDU bounds check so a packet with no APDU does not enter the APDU-handling branch.

Changes:

  • Requires the APDU offset to be strictly less than the PDU length.
File Description
apps/​router-mstp/​main.c Excludes empty APDUs from the routing branch.

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

@skarg
skarg merged commit 31e160f into master Sep 29, 2026
37 checks passed
@skarg
skarg deleted the bugfix/router-mstp-apdu-bounds branch September 29, 2026 18:50
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