Skip to content

fix(service): Add error handling for invalid StoreForward++ packets#4319

Merged
jamesarich merged 2 commits into
mainfrom
fix/invalid-sfpp
Jan 26, 2026
Merged

fix(service): Add error handling for invalid StoreForward++ packets#4319
jamesarich merged 2 commits into
mainfrom
fix/invalid-sfpp

Conversation

@jamesarich

Copy link
Copy Markdown
Collaborator

error handling for invalid sf++ packets

This commit adds a `try-catch` block to handle potential `InvalidProtocolBufferException` when parsing `StoreForwardPlusPlus` packets.

If an invalid payload is received, the exception is now caught and logged, preventing the `MeshDataHandler` from crashing. This improves the robustness of handling malformed or corrupt StoreForward++ messages.

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
@github-actions github-actions Bot added the bugfix PR tag label Jan 26, 2026
@jamesarich jamesarich enabled auto-merge January 26, 2026 12:36
@codecov

codecov Bot commented Jan 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (a28aa4d) to head (485b646).
⚠️ Report is 4 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #4319   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files          3       3           
  Lines         28      28           
  Branches       8       8           
=====================================
  Misses        28      28           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jamesarich jamesarich added this pull request to the merge queue Jan 26, 2026
Merged via the queue into main with commit 4d7af80 Jan 26, 2026
11 checks passed
@jamesarich jamesarich deleted the fix/invalid-sfpp branch January 26, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix PR tag

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant