Skip to content

Ensure receiver properly handles malformed responses to mailbox - #1843

Merged
benalleng merged 1 commit into
payjoin:masterfrom
benalleng:plaintext-padding-overflow
Aug 26, 2026
Merged

Ensure receiver properly handles malformed responses to mailbox#1843
benalleng merged 1 commit into
payjoin:masterfrom
benalleng:plaintext-padding-overflow

Conversation

@benalleng

@benalleng benalleng commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

This ensures that any response that the receiver reads is within the payload size range preventing any panic due to an overflow.

Additionally in the case of an error this does not immediately close the session however I think this could be up to some debate whether these should be treated as fatal errors or not. dropped until we can answer #1844

Pull Request Checklist

Please confirm the following before requesting review:

Before this check any response that fell outside the size range could
cause an overflow and crash the receiver's program. This is limited to
anyone who knew the receiver's pk for a sesssion.
@benalleng
benalleng requested a review from DanGould August 25, 2026 18:35
@benalleng
benalleng requested a review from spacebear21 as a code owner August 25, 2026 18:35
@benalleng
benalleng removed the request for review from DanGould August 25, 2026 18:35
@benalleng benalleng changed the title Plaintext padding overflow Ensure receiver properly handles malformed responses to mailbox Aug 25, 2026
@coveralls

coveralls commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

Coverage Report for CI Build 32896585921

Coverage increased (+0.001%) to 86.719%

Details

  • Coverage increased (+0.001%) from the base build.
  • Patch coverage: 3 of 3 lines across 1 file are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 16459
Covered Lines: 14273
Line Coverage: 86.72%
Coverage Strength: 343.52 hits per line

💛 - Coveralls

@spacebear21 spacebear21 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

ACK 6d84a6c

@benalleng
benalleng merged commit 4590ab2 into payjoin:master Aug 26, 2026
13 checks passed
benalleng added a commit to benalleng/rust-payjoin that referenced this pull request Aug 26, 2026
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.

3 participants