Skip to content

Fixes in MQTT-SN code found by Fenrir#468

Merged
dgarske merged 6 commits intowolfSSL:masterfrom
embhorn:sn_fenrir_fixes
Mar 3, 2026
Merged

Fixes in MQTT-SN code found by Fenrir#468
dgarske merged 6 commits intowolfSSL:masterfrom
embhorn:sn_fenrir_fixes

Conversation

@embhorn
Copy link
Copy Markdown
Member

@embhorn embhorn commented Mar 3, 2026

  • H304 in SN_Encode_RegAck
  • H316 in SN_Encode_Publish
  • M307 SN_Client_WillTopicUpdate
  • M319: SN_Decode_GWInfo
  • M322: SN_Decode_Register
  • L310: Static local in SN_Client_Connect

@embhorn embhorn self-assigned this Mar 3, 2026
Copilot AI review requested due to automatic review settings March 3, 2026 16:21
Copy link
Copy Markdown

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 fixes a single-character bug in the MQTT-SN SN_Encode_RegAck function where the return code field was being incorrectly written into the transmit buffer using += (addition assignment) instead of = (simple assignment), which would corrupt the encoded packet by adding the return code value to whatever byte was previously at that memory location.

Changes:

  • Fixed *tx_payload += regack->return_code*tx_payload = regack->return_code in SN_Encode_RegAck

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

Copilot AI review requested due to automatic review settings March 3, 2026 16:27
Copy link
Copy Markdown

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


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

Copilot AI review requested due to automatic review settings March 3, 2026 16:35
Copy link
Copy Markdown

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

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


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

@embhorn embhorn assigned wolfSSL-Bot and unassigned embhorn Mar 3, 2026
@embhorn embhorn requested a review from dgarske March 3, 2026 16:42
@dgarske dgarske merged commit 8b06121 into wolfSSL:master Mar 3, 2026
27 checks passed
@embhorn embhorn deleted the sn_fenrir_fixes branch April 21, 2026 16:12
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.

4 participants